gimp/app/actions
Michael Natterer 0a5ce16b84 Added API to explicitly register dynamic menu items hierarchies. Fixes bug
2005-03-24  Michael Natterer  <mitch@gimp.org>

	Added API to explicitly register dynamic menu items hierarchies.
	Fixes bug #170623.

	* app/core/gimp.h: added "GSList *plug_in_menu_branches".

	* app/plug-in/plug-in-types.h

	* app/plug-in/plug-ins.[ch]: added API to register plug-in menu
	branches, just as for locale and help domans. Cleaned up handling
	of locale and help domains.

	(plug_ins_exit): free the registered menu branches.

	* app/actions/plug-in-actions.[ch] (plug_in_actions_add_branch):
	new function to explicitly add a menu branch action.

	(plug_in_actions_setup): add the registered menu branches to each
	new action group.

	(plug_in_actions_build_path): always strip the untranslated menu
	path from underlines before using it as hash table key or action
	name.

	* app/menus/plug-in-menus.c (plug_in_menus_add_proc): changed
	accordingly: strip underlines from untranslated menu paths before
	passing them to plug_in_menus_build_path().

	* app/core/gimp-gui.[ch]: added gimp_menus_create_branch() plus
	vtable entry to access the new stuff from the core. Renamed the
	functions desling with items from gimp_foo_entry() to
	gimp_foo_item().

	* app/gui/gui-vtable.c: implement create_branch() and add the
	branch action to all existing "plug-in" action groups. Note that
	we don't need to create any menus because that happens implicitly
	when adding menu items.

	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_branch_register): new
	PDB wrapper to access branch registering from plug-ins.

	* app/pdb/internal_procs.c
	* app/pdb/plug_in_cmds.c
	* libgimp/gimpplugin_pdb.[ch]: regenerated.

	* libgimp/gimp.def: changed accordingly.

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts):
	register the menu branches for all included scripts.
2005-03-24 16:08:04 +00:00
..
.cvsignore More GtkAction stuff (still unused): 2004-04-19 14:54:24 +00:00
actions-types.h configure.in added new directory app/dialogs and link libappdialogs.c into 2004-09-13 15:15:23 +00:00
actions.c bail out if widgets/gimpaction.group.h has not been included beforehand. 2005-03-21 21:18:20 +00:00
actions.h Fixed bug #165618: 2005-03-04 11:42:46 +00:00
brushes-actions.c app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
brushes-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
buffers-actions.c app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
buffers-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
buffers-commands.c app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
buffers-commands.h app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
channels-actions.c added boolean property "value-variable" which specifies if the 2004-11-18 16:04:41 +00:00
channels-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
channels-commands.c don't require a non-NULL color parameter (just leave the default color 2005-01-15 16:59:34 +00:00
channels-commands.h When there are variants of actions with and without dialog, let the 2004-10-23 00:53:48 +00:00
colormap-actions.c added boolean property "value-variable" which specifies if the 2004-11-18 16:04:41 +00:00
colormap-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
colormap-commands.c removed the "Edit Color" dialog callbacks and use 2004-10-24 18:32:24 +00:00
colormap-commands.h Switch from GtkItemFactory to GtkUIManager. The migration is almost 2004-04-29 12:52:29 +00:00
colormap-editor-actions.c added boolean property "value-variable" which specifies if the 2004-11-18 16:04:41 +00:00
colormap-editor-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
colormap-editor-commands.c removed the "Edit Color" dialog callbacks and use 2004-10-24 18:32:24 +00:00
colormap-editor-commands.h Switch from GtkItemFactory to GtkUIManager. The migration is almost 2004-04-29 12:52:29 +00:00
context-actions.c in the spirit of the fix for bug #165618 below, allow tools to specify up 2005-03-04 19:05:40 +00:00
context-actions.h app/actions/Makefile.am app/actions/context-actions.[ch] added new action 2004-06-15 15:42:50 +00:00
context-commands.c app/actions/context-actions.c removed the newly added color picker radius 2005-02-21 11:55:39 +00:00
context-commands.h app/actions/context-actions.c removed the newly added color picker radius 2005-02-21 11:55:39 +00:00
data-commands.c app/actions/data-commands.c app/actions/edit-commands.c 2005-02-10 11:00:46 +00:00
data-commands.h app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
debug-actions.c updated app/actions/makefile.msc app/menus/makefile.msc : (new files) 2004-07-11 21:53:17 +00:00
debug-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
debug-commands.c configure.in app/Makefile.am app/menus/.cvsignore app/menus/Makefile.am 2004-05-06 07:41:53 +00:00
debug-commands.h app/actions/debug-actions.c app/actions/debug-commands.[ch] added action & 2004-05-05 15:54:42 +00:00
dialogs-actions.c set Ctrl-B as default shortcut to raise the Toolbox (as suggested in bug 2005-01-23 00:16:58 +00:00
dialogs-actions.h bail out if widgets/gimpaction.group.h has not been included beforehand. 2005-03-21 21:18:20 +00:00
dialogs-commands.c purely cosmetic. 2004-10-14 14:12:40 +00:00
dialogs-commands.h Switch from GtkItemFactory to GtkUIManager. The migration is almost 2004-04-29 12:52:29 +00:00
dock-actions.c app/actions/Makefile.am new files holding utility functions to create 2005-01-28 19:48:31 +00:00
dock-actions.h Enabled closing docks with Ctrl-W: 2005-01-23 23:00:21 +00:00
dock-commands.c app/actions/Makefile.am new files holding utility functions to create 2005-01-28 19:48:31 +00:00
dock-commands.h app/actions/Makefile.am new files holding utility functions to create 2005-01-28 19:48:31 +00:00
dockable-actions.c app/actions/dockable-actions.c removed dock-related actions 2005-01-26 13:34:41 +00:00
dockable-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
dockable-commands.c app/actions/dockable-actions.c removed dock-related actions 2005-01-26 13:34:41 +00:00
dockable-commands.h app/actions/dockable-actions.c removed dock-related actions 2005-01-26 13:34:41 +00:00
documents-actions.c app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
documents-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
documents-commands.c app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
documents-commands.h app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
drawable-actions.c added boolean property "value-variable" which specifies if the 2004-11-18 16:04:41 +00:00
drawable-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
drawable-commands.c renamed *levels-auto to *levels-stretch 2004-11-01 16:05:19 +00:00
drawable-commands.h renamed *levels-auto to *levels-stretch 2004-11-01 16:05:19 +00:00
edit-actions.c added new function copy_region_nocow() as a workaround for the fact that 2004-12-12 14:01:08 +00:00
edit-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
edit-commands.c app/actions/data-commands.c app/actions/edit-commands.c 2005-02-10 11:00:46 +00:00
edit-commands.h added new function copy_region_nocow() as a workaround for the fact that 2004-12-12 14:01:08 +00:00
error-console-actions.c added boolean property "value-variable" which specifies if the 2004-11-18 16:04:41 +00:00
error-console-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
error-console-commands.c app/actions/data-commands.c app/actions/edit-commands.c 2005-02-10 11:00:46 +00:00
error-console-commands.h added gimp_text_buffer_save() which saves a GtkTextBuffer's contents to a 2004-10-24 22:26:11 +00:00
file-actions.c app/actions/file-actions.c app/actions/image-actions.c 2005-02-08 21:35:49 +00:00
file-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
file-commands.c preselect the image just as in file_open_from_image_cmd_callback(). 2005-02-24 17:18:11 +00:00
file-commands.h For the sake of completeness, added a GUI for the hidden "Open as Layer" 2004-09-21 12:08:30 +00:00
fonts-actions.c Action code review and pre-release consistency cleanup: 2004-10-18 11:29:58 +00:00
fonts-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
fonts-commands.c added action_data_get_context() and macro return_if_no_context(). 2004-05-11 16:05:21 +00:00
fonts-commands.h Switch from GtkItemFactory to GtkUIManager. The migration is almost 2004-04-29 12:52:29 +00:00
gradient-editor-actions.c if the dialog is insensitive, disable all actions which modify the 2004-12-21 00:01:47 +00:00
gradient-editor-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
gradient-editor-commands.c removed the "last_visited" field from GimpGradient. Instead added the new 2005-02-26 23:55:50 +00:00
gradient-editor-commands.h app/widgets/gimpgradienteditor.[ch] added public APIs for zooming the 2004-10-24 20:38:35 +00:00
gradients-actions.c app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
gradients-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
gradients-commands.c app/actions/data-commands.c app/actions/edit-commands.c 2005-02-10 11:00:46 +00:00
gradients-commands.h Switch from GtkItemFactory to GtkUIManager. The migration is almost 2004-04-29 12:52:29 +00:00
help-actions.c Switch from GtkItemFactory to GtkUIManager. The migration is almost 2004-04-29 12:52:29 +00:00
help-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
help-commands.c for consistency, use return_if_no_widget() instead of 2005-02-03 19:27:56 +00:00
help-commands.h Switch from GtkItemFactory to GtkUIManager. The migration is almost 2004-04-29 12:52:29 +00:00
image-actions.c app/actions/file-actions.c app/actions/image-actions.c 2005-02-08 21:35:49 +00:00
image-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
image-commands.c Allow to resize layers with the image. Fixes bug #87789. 2005-02-24 16:39:12 +00:00
image-commands.h app/dialogs/Makefile.am new files for the Print Size dialog that is still 2004-11-13 22:27:39 +00:00
images-actions.c Action code review and pre-release consistency cleanup: 2004-10-18 11:29:58 +00:00
images-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
images-commands.c app/actions/images-commands.[ch] made some public functions private or 2004-10-15 15:13:53 +00:00
images-commands.h app/actions/images-commands.[ch] made some public functions private or 2004-10-15 15:13:53 +00:00
layers-actions.c app/actions/layers-actions.c app/actions/plug-in-actions.c 2005-03-16 23:56:18 +00:00
layers-actions.h app/actions/layers-actions.[ch] app/actions/layers-commands.[ch] added 2004-08-20 22:32:14 +00:00
layers-commands.c app/actions/layers-commands.c app/core/core-enums.[ch] 2005-03-24 10:34:41 +00:00
layers-commands.h When there are variants of actions with and without dialog, let the 2004-10-23 00:53:48 +00:00
Makefile.am check for gthread-2.0 unless the --disable-mp option is given. 2005-02-13 15:08:08 +00:00
makefile.msc TILE_WIDTH is used unconditionally so always include "tile.h" WIN32 needs 2005-02-19 00:50:36 +00:00
palette-editor-actions.c added boolean property "value-variable" which specifies if the 2004-11-18 16:04:41 +00:00
palette-editor-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
palette-editor-commands.c removed the just added gimp_palette_insert_entry() and added a "gint 2004-12-31 17:27:57 +00:00
palette-editor-commands.h app/widgets/gimpgradienteditor.[ch] added public APIs for zooming the 2004-10-24 20:38:35 +00:00
palettes-actions.c app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
palettes-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
palettes-commands.c app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
palettes-commands.h app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
patterns-actions.c app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
patterns-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
plug-in-actions.c Added API to explicitly register dynamic menu items hierarchies. Fixes bug 2005-03-24 16:08:04 +00:00
plug-in-actions.h Added API to explicitly register dynamic menu items hierarchies. Fixes bug 2005-03-24 16:08:04 +00:00
plug-in-commands.c app/actions/data-commands.c app/actions/edit-commands.c 2005-02-10 11:00:46 +00:00
plug-in-commands.h new function which clears the whole list of data set by plug-ins. 2004-07-26 21:07:15 +00:00
qmask-actions.c app/actions/file-actions.c app/actions/image-actions.c 2005-02-08 21:35:49 +00:00
qmask-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
qmask-commands.c app/dialogs/Makefile.am new files implementing the channel options dialog 2004-10-19 09:17:37 +00:00
qmask-commands.h is a GtkRadioAction callback but behaved like a GtkToggleAction callback. 2004-09-19 21:43:43 +00:00
quick-mask-actions.c app/actions/file-actions.c app/actions/image-actions.c 2005-02-08 21:35:49 +00:00
quick-mask-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
quick-mask-commands.c app/dialogs/Makefile.am new files implementing the channel options dialog 2004-10-19 09:17:37 +00:00
quick-mask-commands.h is a GtkRadioAction callback but behaved like a GtkToggleAction callback. 2004-09-19 21:43:43 +00:00
select-actions.c When there are variants of actions with and without dialog, let the 2004-10-23 00:53:48 +00:00
select-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
select-commands.c don't g_return_if_fail() if there is no active drawable, just silently 2004-10-23 19:13:17 +00:00
select-commands.h app/actions/select-actions.c app/actions/select-commands.[ch] 2004-10-20 23:14:24 +00:00
templates-actions.c app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
templates-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
templates-commands.c app/actions/data-commands.c app/actions/edit-commands.c 2005-02-10 11:00:46 +00:00
templates-commands.h app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] 2005-01-14 13:30:05 +00:00
text-editor-actions.c Don't use deprecated GtkToolbar API in GimpTextEditor: 2004-11-04 14:24:32 +00:00
text-editor-actions.h Don't use deprecated GtkToolbar API in GimpTextEditor: 2004-11-04 14:24:32 +00:00
text-editor-commands.c app/actions/data-commands.c app/actions/edit-commands.c 2005-02-10 11:00:46 +00:00
text-editor-commands.h Don't use deprecated GtkToolbar API in GimpTextEditor: 2004-11-04 14:24:32 +00:00
tool-options-actions.c app/actions/context-actions.c added actions to control the average radius 2005-02-20 14:19:22 +00:00
tool-options-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
tool-options-commands.c app/actions/data-commands.c app/actions/edit-commands.c 2005-02-10 11:00:46 +00:00
tool-options-commands.h added signal "update" which is G_SIGNAL_RUN_LAST, so handlers can hook in 2004-04-30 15:29:11 +00:00
tools-actions.c in the spirit of the fix for bug #165618 below, allow tools to specify up 2005-03-04 19:05:40 +00:00
tools-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
tools-commands.c in the spirit of the fix for bug #165618 below, allow tools to specify up 2005-03-04 19:05:40 +00:00
tools-commands.h in the spirit of the fix for bug #165618 below, allow tools to specify up 2005-03-04 19:05:40 +00:00
vectors-actions.c added boolean property "value-variable" which specifies if the 2004-11-18 16:04:41 +00:00
vectors-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
vectors-commands.c app/actions/plug-in-commands.c GIMP_PROGRESS(NULL) is perfectly valid, no 2005-01-07 19:36:43 +00:00
vectors-commands.h When there are variants of actions with and without dialog, let the 2004-10-23 00:53:48 +00:00
view-actions.c app/actions/layers-actions.c app/actions/plug-in-actions.c 2005-03-16 23:56:18 +00:00
view-actions.h app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass 2004-04-27 13:55:26 +00:00
view-commands.c app/actions/view-actions.c app/actions/view-commands.[ch] 2005-03-05 00:10:40 +00:00
view-commands.h app/actions/view-actions.c app/actions/view-commands.[ch] 2005-03-05 00:10:40 +00:00
window-actions.c app/actions/Makefile.am new files holding utility functions to create 2005-01-28 19:48:31 +00:00
window-actions.h app/actions/Makefile.am new files holding utility functions to create 2005-01-28 19:48:31 +00:00