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:
Michael Natterer
2004-04-27 13:55:26 +00:00
committed by Michael Natterer
parent a5130581db
commit aae726ee94
83 changed files with 470 additions and 317 deletions

View File

@ -123,19 +123,16 @@ static GimpStringActionEntry select_tool_actions[] =
void
select_actions_setup (GimpActionGroup *group,
gpointer data)
select_actions_setup (GimpActionGroup *group)
{
gimp_action_group_add_actions (group,
select_actions,
G_N_ELEMENTS (select_actions),
data);
G_N_ELEMENTS (select_actions));
gimp_action_group_add_string_actions (group,
select_tool_actions,
G_N_ELEMENTS (select_tool_actions),
G_CALLBACK (tools_select_cmd_callback),
data);
G_CALLBACK (tools_select_cmd_callback));
}
void