gimp/libgimpconfig
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
..
gimpconfig-deserialize.c app/config/gimpconfig-deserialize.c app/config/gimpscanner.c 2004-05-12 08:13:33 +00:00
gimpconfig-deserialize.h app/widgets/gimpdocked.[ch] renamed GimpDockedIface to 2003-10-11 14:30:18 +00:00
gimpconfig-error.c app/config/Makefile.am moved code from gimpconfig.[ch] to these new files. 2003-07-24 14:14:23 +00:00
gimpconfig-error.h added GIMP_CONFIG_ERROR_VERSION to GimpConfigError enum. 2003-11-07 23:47:35 +00:00
gimpconfig-iface.c added the new function gimp_rc_set_unknown_token() to get autosave working 2004-02-04 00:07:26 +00:00
gimpconfig-iface.h removed gimp_config_copy_properties() and added the more intelligent 2003-10-14 15:20:59 +00:00
gimpconfig-params.h app/config/gimpscanner.c configured the scanner to use 64bit integers. 2003-11-14 13:41:16 +00:00
gimpconfig-path.c when calculating the length of the expanded path, add the length of the 2004-02-01 22:55:30 +00:00
gimpconfig-path.h configure.in etc/Makefile.am etc/gimprc.in removed templates for gimprc 2002-12-29 18:58:24 +00:00
gimpconfig-serialize.c app/config/gimpconfig-serialize.c (gimp_config_serialize_property) 2004-02-19 12:30:18 +00:00
gimpconfig-serialize.h removed function gimp_config_serialize_comment()... 2003-10-12 01:49:51 +00:00
gimpconfig-utils.c made gimp_config_sync() and gimp_config_connect() also work on objects of 2004-03-11 18:47:37 +00:00
gimpconfig-utils.h Added infrastructure to make sure we don't write to the global brush, 2004-01-28 21:53:50 +00:00
gimpconfigwriter.c Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
gimpconfigwriter.h Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
gimpscanner.c Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
gimpscanner.h Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00