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 50294 - GdkRGB uses too many colors on 8-bit
GdkRGB uses too many colors on 8-bit
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
1.3.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-01-05 00:06 UTC by Havoc Pennington
Modified: 2009-08-21 03:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Havoc Pennington 2001-01-05 00:06:14 UTC
GdkRGB tries to allocate 216 colors on an 8-bit display, which is probably
kind of bad citizenship. Should perhaps have an environment variable or X
property that affects this. Otherwise just do a smaller cube by default on
8-bit. Remember to get XlibRGB as well in contrib/
Comment 1 Owen Taylor 2001-01-05 02:31:51 UTC
Actually, allocating the full 216 color Netscape (etc.) colorcube
is good citizenship, not bad citizenship. GdkRGB will properly
share this colorcube if it is initialized second, and other clients
will, or at least should do the same. If you allocate a smaller
colorcube, then you just pollute the space so the full colorcube
can't be allocated.

Comment 2 Havoc Pennington 2001-01-05 04:09:51 UTC
That doesn't really help if some app needs something other than a color cube.
e.g. http://mail.gnome.org/archives/gnome-devel-list/2001-January/msg00009.html
is a person having that problem. I don't think lots of people use PseudoColor,
and fewer of them run apps that don't use this color cube, but really it
shouldn't be necessary to hack gdkrgb.c to support such an app, I don't think.
The app could be proprietary and use a weird color set, who knows.
A three-line if (g_getenv("GTK_FEW_COLORS")) fix would make people feel warm and
fuzzy with no real harm to us. Maybe they just enjoy ugly icons...
Comment 3 Max Kanat-Alexander 2009-08-21 03:22:08 UTC
This bug was marked RESOLVED without a resolution, which Bugzilla does not allow (and so I am fixing it). It is assumed that the bug was intended to be marked as FIXED. If the bug should have some other resolution, please change its resolution.