Re: Custom GdkColormap from X Colormap



Naofumi Yasufuku <naofumi yasufuku net> writes:

> Hi,
> 
> I've working on an OpenGL support library for GTK2, and I'm faced with
> a GdkColormap problem.
> 
> I want to implement the RGB colormap shareing support using
> XmuLookupStandardColormap() and XGetRGBColormap().  But I cannot do it
> because gdkx_colormap_get() is not yet fixed, and current GDK doesn't
> allow us to create and add custom GdkColormap associate with X Colormap.
> 
> Does anybody have an idea to fix gdkx_colormap_get() function?
> 
> And then, I would suggest changing the internal GdkColormap stuffs such
> as gdk_colormap_sync(), gdk_colormap_add(), etc. to be exported.
> If GDK allowed us to call them, we could create custom GdkColormap
> from X Colormap and register it.

Issue of gdx_colormap_get() is tracked in:

 http://bugzilla.gnome.org/show_bug.cgi?id=85697

The first idea about a replacement I had was:

 GdkColormap *gdk_x11_colormap_foreign_new (Display *display,
                                            Visual   visual, 
                                            Colormap colormap);

Why would you want gdk_colormap_sync(), gdk_colormap_add()
to be exported?

Do people actually use non-true-color visuals with 3D applications
(except on obsolete SGI hardware...) ?

Regards,
                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]