gimp/app/config
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 app/Makefile.am app/main.c app/config/Makefile.am app/config/makefile.msc 2003-10-13 22:55:25 +00:00
Makefile.am modernized, made a lot of things m4 macros, and made versioning a lot more 2004-01-22 03:51:46 +00:00
config-types.h app/display/Makefile.am new files that implement a GimpConfig object with 2003-10-22 14:46:05 +00:00
gimpbaseconfig.c added GIMP_MAX_MEMSIZE, an arbitrary upper limit for memory sizes. It must 2003-11-25 19:45:01 +00:00
gimpbaseconfig.h app/config/gimpbaseconfig.h use gint64 for all memsize properties. 2003-11-16 17:51:36 +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-dump.c added '%P' which expands to the PDB id of the active drawable. Moved local 2004-01-27 12:43:53 +00:00
gimpconfig-dump.h app/Makefile.am app/main.c app/config/Makefile.am app/config/makefile.msc 2003-10-13 22:55:25 +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-params.c app/config/gimpscanner.c configured the scanner to use 64bit integers. 2003-11-14 13:41:16 +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-types.c define G*_DISABLE_DEPRECATED for all G* modules except GTK+. Don't do so 2004-05-11 17:19:24 +00:00
gimpconfig-types.h include <libgimpmath/gimpmathtypes.h>. 2003-07-07 16:22:45 +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
gimpconfig.c added the new function gimp_rc_set_unknown_token() to get autosave working 2004-02-04 00:07:26 +00:00
gimpconfig.h removed gimp_config_copy_properties() and added the more intelligent 2003-10-14 15:20:59 +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
gimpcoreconfig.c Made size of undo previews configurable. Not dynamic for now, but at least 2004-03-07 15:33:04 +00:00
gimpcoreconfig.h Made size of undo previews configurable. Not dynamic for now, but at least 2004-03-07 15:33:04 +00:00
gimpdisplayconfig.c removed the display scale from the default image title because it's now 2004-05-10 12:04:28 +00:00
gimpdisplayconfig.h app/config/gimpdisplayconfig.[ch] added a new gimprc option 2003-11-20 17:13:02 +00:00
gimpguiconfig.c put the image popup menu into a dummy menubar to work around the silly 2004-05-17 13:38:03 +00:00
gimpguiconfig.h Changes for help i18n in the core, the rest will take place in the help 2004-03-17 13:59:42 +00:00
gimppluginconfig.c removed an unused variable and trailing whitespace. 2003-11-16 21:57:46 +00:00
gimppluginconfig.h app/config/gimppluginconfig.[ch] added "script-fu-path" back to gimprc. 2002-12-30 01:28:47 +00:00
gimprc-blurbs.h changed the default for "help-locales" from NULL to an empty string. Fixes 2004-03-29 17:54:13 +00:00
gimprc.c Some code review: 2004-02-18 13:43:50 +00:00
gimprc.h added the new function gimp_rc_set_unknown_token() to get autosave working 2004-02-04 00:07:26 +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
gimpxmlparser.c set the GIOChannel encoding to NULL here instead of doing it in 2004-02-16 14:56:10 +00:00
gimpxmlparser.h added gimp_xml_parser_parse_buffer(). 2003-12-21 00:23:36 +00:00
makefile.msc new file to keep common definitions for the msc build use common 2004-02-07 23:01:33 +00:00
test-config.c added simple test for gimp_config_diff(). 2004-03-01 19:50:18 +00:00