I'm trying to retrieve the XWindow ID of a Purebasic existing Window.
Purebasic WindowID() returns a GtkWindow*.
This is what I've found, in C, to get the XWindow ID from it:
Code: Select all
GtkWindow *mywindow;
GdkWindow *gwin;
gwin = gtk_widget_get_window(GTK_WIDGET(mywindow));
printf("the X11 id is %u\n", GDK_DRAWABLE_XID(gwin));
I've tried to search for functions equivalent to these macros without success (or perhaps I've missed those ?).
My question is then: How to accomplish this in Purebasic ?
Perhaps there is a smarter way to retrieve the XWindow ID out of a GtkWindow ?
Cheers,
Guy.



