RSS/Atom feed Twitter
Site is read-only, email is disabled

how to add new stock icons. was: Total bafflement

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

how to add new stock icons. was: Total bafflement William Skaggs 20 Aug 18:25
William Skaggs
2006-08-20 18:25:24 UTC (over 17 years ago)

how to add new stock icons. was: Total bafflement

From: Chris Moller

But I can't figure out where gimp is storing the blasted icons!

Where does gimp_prop_enum_stock_box_new() get the images? Anyone Out There have a clue?

They are carefully hidden :-).

The icons supplied with GIMP are defined by png files located in the themes/Default/images directory. To add new stock icons to GIMP, in addition to putting the png file for them there (or, if you want to follow the model of other things, two png files, one for the Default theme and one for the Small theme), you will need to edit the following files:

themes/Default/images/Makefile.am libgimpwidgets/gimpstock.c
libgimpwidgets/gimpstock.h

If you haven't figured it out yet, the usual way of adding a new enum to GIMP is to edit the file app/core/core-enums.h. Be sure to read the explanation at the top of that file, and if you don't understand it, ask questions.

(Note that in telling you how to go about this, I am not necessarily endorsing it as a good idea.)

-- Bill


______________ ______________ ______________ ______________ Sent via the CNPRC Email system at primate.ucdavis.edu