gimp/app/xcf
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 new directory app/xcf/ 2001-07-03 18:38:56 +00:00
Makefile.am app/file/Makefile.am app/paint/Makefile.am app/text/Makefile.am changed 2004-02-09 09:11:10 +00:00
makefile.msc new file to keep common definitions for the msc build use common 2004-02-07 23:01:33 +00:00
xcf-load.c added a missing call to gimp_image_flush(). 2004-03-18 15:27:23 +00:00
xcf-load.h app/core/Makefile.am app/core/core-types.h added an "application object" 2001-07-04 19:31:35 +00:00
xcf-private.h added a missing call to gimp_image_flush(). 2004-03-18 15:27:23 +00:00
xcf-read.c new function which takes any string and returns UTF-8 (it returns 2003-10-16 12:24:58 +00:00
xcf-read.h new directory app/xcf/ 2001-07-03 18:38:56 +00:00
xcf-save.c app/config/gimpconfig-deserialize.c app/config/gimpscanner.c 2004-05-12 08:13:33 +00:00
xcf-save.h new directory app/xcf/ 2001-07-03 18:38:56 +00:00
xcf-seek.c app/xcf/xcf-load.c app/xcf/xcf-read.c app/xcf/xcf-save.c 2003-09-10 10:40:57 +00:00
xcf-seek.h app/xcf/xcf-write.[ch] app/xcf/xcf-save.c ported the fix for bug #101340 2002-12-20 06:26:34 +00:00
xcf-write.c app/xcf/xcf-load.c app/xcf/xcf-read.c app/xcf/xcf-save.c 2003-09-10 10:40:57 +00:00
xcf-write.h app/xcf/xcf-write.[ch] app/xcf/xcf-save.c ported the fix for bug #101340 2002-12-20 06:26:34 +00:00
xcf.c Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
xcf.h app/Makefile.am removed. 2001-10-18 17:27:36 +00:00