[Gtk-sharp-list] Native GtkWindow handle on MAX OS X (Lion)

look4awhile bbatkin at gmail.com
Wed Sep 21 22:38:15 EDT 2011

I'm trying to make GLWidget work with the latest everything.

Internally it creates custom graphics context
(http://www.opentk.com/book/export/html/1057) which requires native window

It used to run like this

IntPtr windowHandle = gdk_x11_drawable_get_xid(GdkWindow.Handle);
bool ownHandle = true;
bool isControl = true;
windowInfo =
ownHandle, isControl);

but now there is no gdk_x11_drawable_get_xid. Even the library
(libgdk-x11-2.0.so.0) is missing. I got the impression Gtk# is now built
against Quartz, and not X11. But I'm pretty new to both of those systems,
and could be completely wrong.

Now, my question is, how do I get native window handle under Quartz?

View this message in context: http://mono.1490590.n4.nabble.com/Native-GtkWindow-handle-on-MAX-OS-X-Lion-tp3832218p3832218.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list