app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass
2004-04-27 Michael Natterer <mitch@gimp.org> * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimppluginaction.[ch]: new GtkAction subclass which remembers the PlugInProcDef. * app/widgets/gimpactiongroup.[ch]: added "gpointer user_data" to the GimpActionGroup struct and to gimp_action_group_new(). Removed the user_data parameter from gimp_action_group_add_*_actions(). * app/widgets/gimpactionfactory.[ch]: changed accordingly. * app/actions/*-actions.[ch]: removed user_data from all setup_funcs. * app/actions/plug-in-actions.c: use a GimpPlugInAction and finally use the right user_data for the callback so plug-in callbacks have a proper context. * app/gui/plug-in-menus.[ch]: renamed plug_in_menus_create2() to plug_in_menus_setup(). * app/gui/image-menu.c * app/gui/toolbox-menu.c: changed accordingly.
This commit is contained in:

committed by
Michael Natterer

parent
a5130581db
commit
aae726ee94
@ -72,25 +72,21 @@ static GimpRadioActionEntry qmask_invert_actions[] =
|
||||
|
||||
|
||||
void
|
||||
qmask_actions_setup (GimpActionGroup *group,
|
||||
gpointer data)
|
||||
qmask_actions_setup (GimpActionGroup *group)
|
||||
{
|
||||
gimp_action_group_add_actions (group,
|
||||
qmask_actions,
|
||||
G_N_ELEMENTS (qmask_actions),
|
||||
data);
|
||||
G_N_ELEMENTS (qmask_actions));
|
||||
|
||||
gimp_action_group_add_toggle_actions (group,
|
||||
qmask_toggle_actions,
|
||||
G_N_ELEMENTS (qmask_toggle_actions),
|
||||
data);
|
||||
G_N_ELEMENTS (qmask_toggle_actions));
|
||||
|
||||
gimp_action_group_add_radio_actions (group,
|
||||
qmask_invert_actions,
|
||||
G_N_ELEMENTS (qmask_invert_actions),
|
||||
FALSE,
|
||||
G_CALLBACK (qmask_invert_cmd_callback),
|
||||
data);
|
||||
G_CALLBACK (qmask_invert_cmd_callback));
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user