Re: Custom GdkColormap from X Colormap



On Sat, 2002-08-03 at 14:43, Naofumi Yasufuku wrote:
> 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?

Might want to check out the GtkGLArea widget
(http://www.student.oulu.fi/~jlof/gtkglarea/) and see how they do it. 
Perhaps they've figured out a good way to do it.  I believe it compiles
against gtk+2 now, but I could be mistaken.

Michael




> 
> 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.
> 
> What do you think of it?
> 
> Regards,
> -Naofumi
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list




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