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 88727 - Tool preview icon is hardcoded
Tool preview icon is hardcoded
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
git master
Other other
: Normal normal
: 2.0
Assigned To: GIMP Bugs
Daniel Egger
Depends on:
Blocks:
 
 
Reported: 2002-07-21 15:27 UTC by gsr.bugs
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Dock and toolbox, same theme, different look (11.03 KB, image/png)
2002-07-21 22:44 UTC, gsr.bugs
Details
gtkrc under testing, used for the previous image (43.49 KB, text/plain)
2002-07-21 22:45 UTC, gsr.bugs
Details

Description gsr.bugs 2002-07-21 15:27:07 UTC
The tool options tab header hardcodes its icon, thus
making themes fail in its purpose: provide an unified look.
The widget name seems to be GimpToolInfoPreview (inspecting
with GLE module for GTK+).

This widget should use a similar approach like the others, so it
can be changed via gtkrc. It does not make much sense to use it
as "preview" when it does not behave like Brush preview, ie.
Comment 1 Sven Neumann 2002-07-21 22:16:53 UTC
The icon is not hardcoded, it uses the icon of the active tool. The
tool icons itself are themeable.
Comment 2 gsr.bugs 2002-07-21 22:42:41 UTC
I am theming all the app with a gtkrc that uses the theme
icons or shows nothing (1*1 pixel) or shows error (image not
avaliable yet). I attach that gtkrc file and a capture of the
screen. Could someone tell me then why icons differ?

With GLE this "icon" is not marked as GtkImage at all,
all I see is a GtkHBox that has GtkLabel and GimpToolInfoPreview,
and none of those make references to stock images or can expand
(leaves of the tree). By toogling "visible" of GTIP I can make
the "icon" disappear, but that is not what I want. Others icons
are GtkImage and have the Stock ID I write in the gtkrc.
Comment 3 gsr.bugs 2002-07-21 22:44:03 UTC
Created attachment 9995 [details]
Dock and toolbox, same theme, different look
Comment 4 gsr.bugs 2002-07-21 22:45:20 UTC
Created attachment 9996 [details]
gtkrc under testing, used for the previous image
Comment 5 Sven Neumann 2002-07-22 12:11:34 UTC
OK, it's indeed a missing feature. GimpPreview isn't yet finished. We
need to add support for (stock) pixbufs.
Comment 6 Sven Neumann 2003-02-27 19:14:25 UTC
This is now fixed in CVS:

2003-02-26  Michael Natterer  <mitch@gimp.org>

     * app/core/gimpviewable.[ch]: added "gchar *stock_id" to the
     GimpViewable struct. It is used by the GUI if the get_preview()
     functions return NULL. Default to GTK_STOCK_DIALOG_QUESTION.

     * app/core/gimptoolinfo.[ch]: set the tool's stock_id. Removed
     the cached GdkPixbuf. Don't implement any preview function
     so the GUI uses the stock_id.

     * app/tools/tool_manager.c: removed GdkPixbuf creation, removed
     the #warning about the buggy way we created the pixbuf.