added new function gimp_paint_mode_menu_set_history().

2004-04-20  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpwidgets-constructors.[ch]: added new function
	gimp_paint_mode_menu_set_history().

	* app/gui/brush-select.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimppropwidgets.c: use the new function instead of
	the deprecated gimp_int_option_menu API.
This commit is contained in:
Sven Neumann 2004-04-20 13:10:50 +00:00 committed by Sven Neumann
parent b0c328afbd
commit 5e3b9ec330
7 changed files with 24 additions and 4 deletions

View File

@ -1,3 +1,13 @@
2004-04-20 Sven Neumann <sven@gimp.org>
* app/widgets/gimpwidgets-constructors.[ch]: added new function
gimp_paint_mode_menu_set_history().
* app/gui/brush-select.c
* app/widgets/gimplayertreeview.c
* app/widgets/gimppropwidgets.c: use the new function instead of
the deprecated gimp_int_option_menu API.
2004-04-20 Sven Neumann <sven@gimp.org>
* plug-ins/common/align_layers.c

View File

@ -365,7 +365,7 @@ brush_select_paint_mode_changed (GimpContext *context,
GimpLayerModeEffects paint_mode,
BrushSelect *bsp)
{
gimp_int_option_menu_set_history (GTK_OPTION_MENU (bsp->paint_mode_menu),
gimp_paint_mode_menu_set_history (GTK_OPTION_MENU (bsp->paint_mode_menu),
paint_mode);
brush_select_change_callbacks (bsp, FALSE);

View File

@ -927,7 +927,7 @@ static void
gimp_layer_tree_view_update_options (GimpLayerTreeView *view,
GimpLayer *layer)
{
gimp_int_option_menu_set_history (GTK_OPTION_MENU (view->paint_mode_menu),
gimp_paint_mode_menu_set_history (GTK_OPTION_MENU (view->paint_mode_menu),
layer->mode);
if (layer->preserve_trans !=

View File

@ -545,7 +545,7 @@ gimp_prop_paint_menu_notify (GObject *config,
param_spec->name, &value,
NULL);
gimp_int_option_menu_set_history (GTK_OPTION_MENU (menu), value);
gimp_paint_mode_menu_set_history (GTK_OPTION_MENU (menu), value);
}

View File

@ -108,3 +108,10 @@ gimp_paint_mode_menu_new (GCallback callback,
return menu;
}
void
gimp_paint_mode_menu_set_history (GtkOptionMenu *menu,
GimpLayerModeEffects value)
{
gimp_int_option_menu_set_history (menu, value);
}

View File

@ -25,5 +25,8 @@ GtkWidget * gimp_paint_mode_menu_new (GCallback callback,
gboolean with_behind_mode,
GimpLayerModeEffects initial);
void gimp_paint_mode_menu_set_history (GtkOptionMenu *menu,
GimpLayerModeEffects value);
#endif /* __GIMP_WIDGETS_CONSTRUCTORS_H__ */

View File

@ -545,7 +545,7 @@ gimp_prop_paint_menu_notify (GObject *config,
param_spec->name, &value,
NULL);
gimp_int_option_menu_set_history (GTK_OPTION_MENU (menu), value);
gimp_paint_mode_menu_set_history (GTK_OPTION_MENU (menu), value);
}