Re: Getting native X Window from GtkWidget



On Mon, 14 Mar 2005 13:42:48 +0100, Jörg Henne <j henne levigo de> wrote:
for its parent GdkWindow window using gtk_widget_get_parent_window. And
I found this:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-X-Window-System-Interaction.html
but there doesn't seem to be a method which returns a GdkNativeWindow
for a given GdkWindow.

I think you need:

Window GDK_WINDOW_XID( GdkWindow * )

It returns the X11 window for a GdkWindow. For example:

  Window w = GDK_WINDOW_XID( GTK_WIDGET( my_widget )->window );



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