Hi John;

On Wed, 22 Jan 2003 [EMAIL PROTECTED] wrote:

> Peter F Bradshaw wrote:
> > I'm new to Gtk. I'm looking for a way to get the underlying X11 Window
> > value from a Gtk widget. The Gtk library version is 1,2.
>
> Hi, something like (untested):
>
> #include <gdk/gdkprivate.h>
>
> Window
> get_xwin( GtkWidget *widget )
> {
>       GdkWindow *gwin = widget->window;
>       GdkWindowPrivate *pgwin = (GdkWindowPrivate *) gwin;
>
>       return( pgwin->xwindow );
> }
>
> Take a look at the source for (eg.) gdk_window_show() for hints. Of course
> this is an unsupported hack and will break horribly with lib changes. You
> might be able to find another way to solve your problem --- why do you need
> the xwindow?

Yes. I have taken to hunting through the dgk code. I need an xid in
order to render some OpenGL (or, more exactly, vtk).

Thanks.

>
> John
>
>
>

Cheers

-- 
Peter F Bradshaw, [EMAIL PROTECTED], ICQ 75431157 (exadios).
http://www.exadios.com
PGP public key at http://www.exadios.com/public_key.html
"Needs more salt" - Archimedes


_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to