GNOME Bugzilla – Bug 144422
Insensitive or activated icons from pixmaps looks bad on 8-bit displays.
Last modified: 2014-07-19 03:19:53 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).
Created attachment 28726 [details] Code Compile and run on an 8 bit display. Add -lXpm when linking.
Created attachment 28727 [details] Shows discoloration in toolbar
Created attachment 28728 [details] Shows discoloration, also activated button.
See related bug 135423 and bug 144422
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.
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.
GdkPixbuf is now a separate library, moving to new correct component
closing out old bugs.