gimp/app/plug-in
Michael Natterer 3fb934b2a4 Allow plug-ins to register menu icons. Fixes bug #120500.
2004-05-18  Michael Natterer  <mitch@gimp.org>

	Allow plug-ins to register menu icons. Fixes bug #120500.

	* app/core/core-enums.[ch]: added enum GimpIconType which can
	be one of { STOCK_ID, IMAGE_FILE, INLINE_PIXBUF }.

	* app/config/gimpconfigwriter.[ch] (gimp_config_writer_data)
	* app/config/gimpscanner.[ch] (gimp_scanner_parse_data): new
	functions which write/parse raw binary data. Needed for storing
	inline pixbufs in pluginrc.

	* app/config/gimpconfigwriter.[ch] (gimp_config_writer_identifier):
	new function which writes out an unquoted and unescaped string.

	* app/plug-in/plug-in-proc.[ch] (struct PlugInProcDef): added
	new members "icon_type", "icon_data_length" and "icon_data".
	Reordered members so file_proc specific stuff is at the end.

	(plug_in_proc_def_get_stock_id)
	(plug_in_proc_def_get_pixbuf): new functions to access the
	procedure's icon.

	* app/plug-in/plug-in-rc.c: save/restore the registered icons.

	* app/actions/file-dialog-actions.c
	* app/actions/plug-in-actions.c: set the action's stock ID from
	the procedure's stock ID.

	* app/widgets/gimppluginaction.c
	(gimp_plug_in_action_connect_proxy): if the procedure provides a
	pixbuf, set it as icon for the menu item.

	* app/menus/file-dialog-menu.[ch]
	* app/menus/file-open-menu.c
	* app/menus/file-save-menu.c
	* app/xcf/xcf.c: changed accordingly.

	* tools/pdbgen/pdb/plug_in.pdb (plugin_icon_register): new PDB
	function which can be called during query().

	* tools/pdbgen/enums.pl
	* app/pdb/internal_procs.c
	* app/pdb/plug_in_cmds.c
	* libgimp/gimpenums.h
	* libgimp/gimpplugin_pdb.c
	* libgimp/gimpplugin_pdb.h
	* plug-ins/pygimp/gimpenums.py
	* plug-ins/script-fu/script-fu-constants.c: regenerated.

	* plug-ins/common/plugindetails.c
	* plug-ins/common/uniteditor.c
	* plug-ins/print/print.c: register stock_id icons.

	* plug-ins/common/screenshot.c: register an inline_pixbuf icon for
	testing purposes (used emblem-camera.png from gnome-icon-theme).

	* app/actions/dialogs-actions.c
	* app/actions/file-actions.c: unrelated: added some more icons
	to menu items.
2004-05-18 21:19:43 +00:00
..
.cvsignore added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
Makefile.am [ I've postponed my reservations against pangoft2/fontconfig/freetype2 2003-12-13 01:35:19 +00:00
gimpenvirontable.c include "libgimpbase/gimpbase.h" where needed; removed now unnecessary 2004-01-19 01:54:11 +00:00
gimpenvirontable.h added some rudimentary support to prepend values to existing environment 2002-12-18 02:47:39 +00:00
gimpplugin-message.c removed member "accelerator". It was never set and this is the 2004-05-07 11:25:45 +00:00
gimpplugin-message.h renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
gimpplugin-progress.c added lots more "GimpFooFunc gui_foo_func" vtable entries to the Gimp 2003-09-10 22:06:45 +00:00
gimpplugin-progress.h renamed plug_in_progress_init() to plug_in_progress_start() so it matches 2003-01-20 12:17:32 +00:00
gimpplugin.c new function which returns a newly allocated string which is the menu 2004-05-18 09:04:12 +00:00
gimpplugin.h Context cleanup continued: 2004-04-15 13:10:51 +00:00
gimpplugindebug.c added lots of members for the complete state of the plug-ins. 2003-02-11 12:07:31 +00:00
gimpplugindebug.h added hooks for running plug-ins under a memory debugger. Also, removed 2003-02-11 01:21:21 +00:00
gimppluginmanager-call.c Context cleanup continued: 2004-04-15 13:10:51 +00:00
gimppluginmanager-call.h Context cleanup continued: 2004-04-15 13:10:51 +00:00
gimppluginmanager-run.c Context cleanup continued: 2004-04-15 13:10:51 +00:00
gimppluginmanager-run.h Context cleanup continued: 2004-04-15 13:10:51 +00:00
gimppluginmanager.c check if the file procedure registered a menu path at all. The menu should 2004-05-14 16:54:33 +00:00
gimppluginmanager.h added new PDB function gimp_register_file_handler_mime() that allows to 2004-05-14 00:01:11 +00:00
gimppluginprocedure.c Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
gimppluginprocedure.h Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
gimppluginshm.c libgimp/gimp.c close the shm_open fd in the POSIX shm case. We were 2004-03-25 09:02:28 +00:00
gimppluginshm.h renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
makefile.msc new file to keep common definitions for the msc build use common 2004-02-07 23:01:33 +00:00
plug-in-debug.c added lots of members for the complete state of the plug-ins. 2003-02-11 12:07:31 +00:00
plug-in-debug.h added hooks for running plug-ins under a memory debugger. Also, removed 2003-02-11 01:21:21 +00:00
plug-in-def.c added lots more "GimpFooFunc gui_foo_func" vtable entries to the Gimp 2003-09-10 22:06:45 +00:00
plug-in-def.h Completed the new help infrastructure. Needs some polishing but basically 2003-08-28 18:49:11 +00:00
plug-in-message.c removed member "accelerator". It was never set and this is the 2004-05-07 11:25:45 +00:00
plug-in-message.h renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
plug-in-params.c changed warnings to include the invalid menu path. Added check that makes 2004-05-15 11:26:59 +00:00
plug-in-params.h Changed plug-in menu registration again to allow passing just the menu 2004-05-07 00:30:24 +00:00
plug-in-proc-def.c Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
plug-in-proc-def.h Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
plug-in-proc.c Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
plug-in-proc.h Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
plug-in-progress.c added lots more "GimpFooFunc gui_foo_func" vtable entries to the Gimp 2003-09-10 22:06:45 +00:00
plug-in-progress.h renamed plug_in_progress_init() to plug_in_progress_start() so it matches 2003-01-20 12:17:32 +00:00
plug-in-rc.c Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
plug-in-rc.h added GIMP_CONFIG_ERROR_VERSION to GimpConfigError enum. 2003-11-07 23:47:35 +00:00
plug-in-run.c Context cleanup continued: 2004-04-15 13:10:51 +00:00
plug-in-run.h Context cleanup continued: 2004-04-15 13:10:51 +00:00
plug-in-shm.c libgimp/gimp.c close the shm_open fd in the POSIX shm case. We were 2004-03-25 09:02:28 +00:00
plug-in-shm.h renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
plug-in-types.h added lots of members for the complete state of the plug-ins. 2003-02-11 12:07:31 +00:00
plug-in.c new function which returns a newly allocated string which is the menu 2004-05-18 09:04:12 +00:00
plug-in.h Context cleanup continued: 2004-04-15 13:10:51 +00:00
plug-ins.c check if the file procedure registered a menu path at all. The menu should 2004-05-14 16:54:33 +00:00
plug-ins.h added new PDB function gimp_register_file_handler_mime() that allows to 2004-05-14 00:01:11 +00:00