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 144422 - Insensitive or activated icons from pixmaps looks bad on 8-bit displays.
Insensitive or activated icons from pixmaps looks bad on 8-bit displays.
Status: RESOLVED OBSOLETE
Product: gdk-pixbuf
Classification: Platform
Component: general
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: gdk-pixbuf-maint
gdk-pixbuf-maint
Depends on:
Blocks:
 
 
Reported: 2004-06-15 13:56 UTC by Jan D.
Modified: 2014-07-19 03:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Code (5.55 KB, text/plain)
2004-06-15 13:57 UTC, Jan D.
Details
Shows discoloration in toolbar (10.63 KB, image/jpeg)
2004-06-15 14:00 UTC, Jan D.
Details
Shows discoloration, also activated button. (9.99 KB, image/jpeg)
2004-06-15 14:03 UTC, Jan D.
Details

Description Jan D. 2004-06-15 13:56:28 UTC
An icon is loaded into an X pixmap with a bitmap mask, and that pixmap/bitmap is
used to create an GtkImage.  The GtkImage is then used in a toolbar.
See attached code and screen shot.  To compile you must add -lXpm when linking.

Note that the code has been reduced to its bare minimum, it is part of a much
larger program, so it is not feasable to just use GTK functions.

I suspect the routine gdk_pixbuf_saturate_and_pixelate, but I am not sure.  The
code does contain a workaround, but this workaround does not work for 1 bit
displays (I'll file a separate bug for that).
Comment 1 Jan D. 2004-06-15 13:57:33 UTC
Created attachment 28726 [details]
Code

Compile and run on an 8 bit display.
Add -lXpm when linking.
Comment 2 Jan D. 2004-06-15 14:00:17 UTC
Created attachment 28727 [details]
Shows discoloration in toolbar
Comment 3 Jan D. 2004-06-15 14:03:24 UTC
Created attachment 28728 [details]
Shows discoloration, also activated button.
Comment 4 Matthias Clasen 2004-06-16 14:20:04 UTC
See related bug 135423 and bug 144422
Comment 5 Javier Jardón (IRC: jjardon) 2010-10-29 16:25:14 UTC
Thank you for taking the time to report this bug and helping to make GTK+ better.

We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner. There have been many changes in GTK+ since that time you reported the bug and your problem may have been fixed with some of the updates.

It would help us a lot if you could test a current, supported, GTK+ version (2.22 or, even better, current master). If you can test it, and it is still an issue, we would appreciate if you could upload any log / test case that are relevant for this particular issue.
Comment 6 Jan D. 2010-11-01 21:10:19 UTC
It is the same in 2.22.  In master all the GdkPixbuf stuff is gone, so I'm not sure how to import an X pixmap anymore.
Comment 7 Javier Jardón (IRC: jjardon) 2010-11-02 02:06:50 UTC
GdkPixbuf is now a separate library, moving to new correct component
Comment 8 Matthias Clasen 2014-07-19 03:19:53 UTC
closing out old bugs.