mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 12:02:32 +00:00
"adj" is a GtkObject not a GtkWidget, also moved it to its local scope.
2007-03-15 Michael Natterer <mitch@gimp.org> * app/tools/gimppaintoptions-gui.c (gimp_paint_options_gui): "adj" is a GtkObject not a GtkWidget, also moved it to its local scope. svn path=/trunk/; revision=22127
This commit is contained in:
parent
b032bdb436
commit
9f650d77f5
|
@ -1,3 +1,8 @@
|
|||
2007-03-15 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/tools/gimppaintoptions-gui.c (gimp_paint_options_gui): "adj"
|
||||
is a GtkObject not a GtkWidget, also moved it to its local scope.
|
||||
|
||||
2007-03-15 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/tools/gimprectangletool.c (gimp_rectangle_tool_halt): check
|
||||
|
|
|
@ -78,7 +78,6 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
|
|||
GtkWidget *menu;
|
||||
GtkWidget *label;
|
||||
GtkWidget *button;
|
||||
GtkWidget *adj;
|
||||
GtkWidget *incremental_toggle = NULL;
|
||||
gint table_row = 0;
|
||||
GType tool_type;
|
||||
|
@ -95,7 +94,7 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
|
|||
g_object_set_data (G_OBJECT (vbox), GIMP_PAINT_OPTIONS_TABLE_KEY, table);
|
||||
|
||||
/* the paint mode menu */
|
||||
menu = gimp_prop_paint_mode_menu_new (config, "paint-mode", TRUE, FALSE);
|
||||
menu = gimp_prop_paint_mode_menu_new (config, "paint-mode", TRUE, FALSE);
|
||||
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, table_row++,
|
||||
_("Mode:"), 0.0, 0.5,
|
||||
menu, 2, FALSE);
|
||||
|
@ -125,6 +124,8 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
|
|||
|
||||
if (tool_type != GIMP_TYPE_SMUDGE_TOOL)
|
||||
{
|
||||
GtkObject *adj;
|
||||
|
||||
adj = gimp_prop_scale_entry_new (config, "brush-scale",
|
||||
GTK_TABLE (table), 0, table_row++,
|
||||
_("Scale:"),
|
||||
|
@ -132,7 +133,6 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
|
|||
FALSE, 0.0, 0.0);
|
||||
|
||||
gimp_scale_entry_set_logarithmic (adj, TRUE);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue