mirror of https://github.com/GNOME/gimp.git
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:
parent
b0c328afbd
commit
5e3b9ec330
10
ChangeLog
10
ChangeLog
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 !=
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue