After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 120500 - Allow plug-ins to register menu icons
Allow plug-ins to register menu icons
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
git master
Other All
: Normal enhancement
: Future
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks: 101604
 
 
Reported: 2003-08-22 18:36 UTC by Bartosz
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bartosz 2003-08-22 18:36:33 UTC
Hi. My name is Bartosz KOsiorek.
Could you create colour icons in main menu ( when you click right mouse 
button on editing picture).
I hate look for ( for example) my favourite plugin .
When near the name will be an colour icon , it will be easy to find.
Why GIMP is so difficult for begginer.
Comment 1 Henrik Brix Andersen 2003-08-22 18:46:04 UTC
GIMP 1.3.x (the current development releases) already uses coloured
icons. The nature of the plug-ins however, does not provide an easy
way to set icons for the filters menu. Maybe the API could be changed
to allow filters/plug-ins to register an icon to use?

I doubt we will change GIMP 1.2.x to use coloured icons as well...
Comment 2 Raphaël Quinet 2003-08-22 20:23:05 UTC
As I mentioned last year in bug #68612, a patch that adds icons next
to the plug-ins was submitted some time ago to the gimp-developer
mailing list.  I don't think that it has been integrated in CVS.
Probably because it was not the right way to add these icons, but I
just don't remember.
Comment 3 Sven Neumann 2003-08-23 11:50:41 UTC
Changed the subject to focus on the possibility for plug-ins to
register menu icons. Colored or not is not the point here.
Comment 4 Michael Natterer 2004-05-18 21:20:16 UTC
Fixed in CVS:

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).