app/widgets/gimpbrushfactoryview.c app/widgets/gimpdatafactoryview.c

2004-03-17  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpbrushfactoryview.c
	* app/widgets/gimpdatafactoryview.c
	* app/widgets/gimppatternfactoryview.c: removed redundant code.
This commit is contained in:
Sven Neumann 2004-03-17 18:49:44 +00:00 committed by Sven Neumann
parent e2d5ed6244
commit b50d45d06c
4 changed files with 16 additions and 40 deletions

View File

@ -1,3 +1,9 @@
2004-03-17 Sven Neumann <sven@gimp.org>
* app/widgets/gimpbrushfactoryview.c
* app/widgets/gimpdatafactoryview.c
* app/widgets/gimppatternfactoryview.c: removed redundant code.
2004-03-17 Simon Budig <simon@gimp.org>
* app/gui/channels-commands.c

View File

@ -23,7 +23,6 @@
#include <gtk/gtk.h>
#include "libgimpmath/gimpmath.h"
#include "libgimpwidgets/gimpwidgets.h"
#include "widgets-types.h"
@ -115,7 +114,7 @@ gimp_brush_factory_view_init (GimpBrushFactoryView *view)
_("Spacing:"), -1, -1,
0.0, 1.0, 200.0, 1.0, 10.0, 1,
FALSE, 1.0, 5000.0,
_("Percentage of width of brush"),
_("Percentage of width of brush"),
NULL));
view->spacing_scale = GIMP_SCALE_ENTRY_SCALE (view->spacing_adjustment);
@ -212,9 +211,7 @@ gimp_brush_factory_view_select_item (GimpContainerEditor *editor,
gimp_container_have (GIMP_CONTAINER_EDITOR (view)->view->container,
GIMP_OBJECT (viewable)))
{
GimpBrush *brush;
brush = GIMP_BRUSH (viewable);
GimpBrush *brush = GIMP_BRUSH (viewable);
spacing_sensitive = TRUE;
@ -256,9 +253,7 @@ static void
gimp_brush_factory_view_spacing_update (GtkAdjustment *adjustment,
GimpBrushFactoryView *view)
{
GimpBrush *brush;
brush = GIMP_CONTAINER_EDITOR (view)->view->context->brush;
GimpBrush *brush = GIMP_CONTAINER_EDITOR (view)->view->context->brush;
if (brush && view->change_brush_spacing)
{

View File

@ -23,7 +23,6 @@
#include <gtk/gtk.h>
#include "libgimpmath/gimpmath.h"
#include "libgimpwidgets/gimpwidgets.h"
#include "widgets-types.h"

View File

@ -23,28 +23,18 @@
#include <gtk/gtk.h>
#include "libgimpmath/gimpmath.h"
#include "libgimpwidgets/gimpwidgets.h"
#include "widgets-types.h"
#include "core/gimpcontainer.h"
#include "core/gimpcontext.h"
#include "core/gimppattern.h"
#include "core/gimpdatafactory.h"
#include "core/gimpviewable.h"
#include "gimpcontainerview.h"
#include "gimppatternfactoryview.h"
#include "gimppreviewrenderer.h"
#include "gimp-intl.h"
static void gimp_pattern_factory_view_class_init (GimpPatternFactoryViewClass *klass);
static void gimp_pattern_factory_view_init (GimpPatternFactoryView *view);
static GimpDataFactoryViewClass *parent_class = NULL;
GType
gimp_pattern_factory_view_get_type (void)
@ -56,14 +46,14 @@ gimp_pattern_factory_view_get_type (void)
static const GTypeInfo view_info =
{
sizeof (GimpPatternFactoryViewClass),
NULL, /* base_init */
NULL, /* base_finalize */
(GClassInitFunc) gimp_pattern_factory_view_class_init,
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* class_init */
NULL, /* class_finalize */
NULL, /* class_data */
NULL, /* class_data */
sizeof (GimpPatternFactoryView),
0, /* n_preallocs */
(GInstanceInitFunc) gimp_pattern_factory_view_init,
0, /* n_preallocs */
NULL /* instance_init */
};
view_type = g_type_register_static (GIMP_TYPE_DATA_FACTORY_VIEW,
@ -74,17 +64,6 @@ gimp_pattern_factory_view_get_type (void)
return view_type;
}
static void
gimp_pattern_factory_view_class_init (GimpPatternFactoryViewClass *klass)
{
parent_class = g_type_class_peek_parent (klass);
}
static void
gimp_pattern_factory_view_init (GimpPatternFactoryView *view)
{
}
GtkWidget *
gimp_pattern_factory_view_new (GimpViewType view_type,
GimpDataFactory *factory,
@ -95,7 +74,6 @@ gimp_pattern_factory_view_new (GimpViewType view_type,
GimpMenuFactory *menu_factory)
{
GimpPatternFactoryView *factory_view;
GimpContainerEditor *editor;
g_return_val_if_fail (GIMP_IS_DATA_FACTORY (factory), NULL);
g_return_val_if_fail (preview_size > 0 &&
@ -120,8 +98,6 @@ gimp_pattern_factory_view_new (GimpViewType view_type,
gtk_widget_hide (GIMP_DATA_FACTORY_VIEW (factory_view)->duplicate_button);
editor = GIMP_CONTAINER_EDITOR (factory_view);
return GTK_WIDGET (factory_view);
}