GTK+ FAQ
<<< Previous | Development with GTK+: general questions | Next >>>

# How do I get the Window ID of a GtkWindow?

The actual Gdk/X window will be created when the widget gets realized. You can get the Window ID with:

    #include <gdk/gdkx.h>

    Window xwin = GDK_WINDOW_XWINDOW (GTK_WIDGET (my_window)->window);

<<< Previous | Home | Next >>>
How do I identifiy a widgets top level window or other ancestor? | Up | How do I catch a double click event (in a list widget, for example)?