GNOME Bugzilla – Bug 50294
GdkRGB uses too many colors on 8-bit
Last modified: 2009-08-21 03:22:08 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/
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.
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...
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.