Gimp/plug-ins/script-fu
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
..
scripts fixed wrong use of layer ID; bug #142326. 2004-05-16 12:04:14 +00:00
siod renamed gimp_drawable_image() to gimp_drawable_get_image() for symmetry 2003-12-04 13:21:27 +00:00
.cvsignore
convert-script
Makefile.am modernized, made a lot of things m4 macros, and made versioning a lot more 2004-01-22 03:51:46 +00:00
scheme-wrapper.c applied a patch from Kevin Cozens that makes the Script-Fu PDB marshaller 2004-04-08 16:05:27 +00:00
scheme-wrapper.h more plug-ins adapted to libgimp changes. 2003-07-02 11:07:41 +00:00
script-fu-console.c applied a patch from Kevin Cozens that slightly alters the Script-Fu 2004-03-18 18:06:23 +00:00
script-fu-console.h more plug-ins adapted to libgimp changes. 2003-07-02 00:15:09 +00:00
script-fu-constants.c Allow plug-ins to register menu icons. Fixes bug #120500. 2004-05-18 21:19:43 +00:00
script-fu-constants.h
script-fu-enums.h set the window title for file selection dialogs as we do for directory 2001-11-21 18:50:50 +00:00
script-fu-interface.c libgimp/Makefile.am libgimp/gimpui.h new file that holds pixbuf accessors 2004-04-20 22:14:49 +00:00
script-fu-intl.h Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
script-fu-scripts.c libgimp/Makefile.am libgimp/gimpui.h new file that holds pixbuf accessors 2004-04-20 22:14:49 +00:00
script-fu-scripts.h configure.in plug-ins/script-fu/siod/Makefile.am 2003-11-26 17:14:58 +00:00
script-fu-server.c added help IDs for the libgimp export and unit dialogs. 2004-01-20 17:10:16 +00:00
script-fu-server.h more plug-ins adapted to libgimp changes. 2003-07-02 00:15:09 +00:00
script-fu-text-console.c more plug-ins adapted to libgimp changes. 2003-07-02 00:15:09 +00:00
script-fu-text-console.h more plug-ins adapted to libgimp changes. 2003-07-02 00:15:09 +00:00
script-fu.c plug-ins/common/AlienMap2.c plug-ins/common/CML_explorer.c 2004-05-07 14:59:33 +00:00
siod-wrapper.c applied a patch from Kevin Cozens that makes the Script-Fu PDB marshaller 2004-04-08 16:05:27 +00:00
siod-wrapper.h more plug-ins adapted to libgimp changes. 2003-07-02 11:07:41 +00:00