Re: GtkWindow from window ID




On Thu, 6 May 1999, Adrian Hosey wrote:
> 
> Is there a way to take an existing window (via its window ID) and "cast" 
> it into a GtkWindow? Specifically I'd like to be able to use the
> gnome_win_hints_* functions on existing windows, those windows may not
> even be using GTK. 
> 

Nope, there's no way to do that. You can wrap an X window with a GdkWindow 
using gdk_window_foreign_new() (gdk/gdkx.h) and then cut-and-paste the
code from gnome_win_hints_* maybe. But then you may as well just write
your own Xlib versions...

Havoc




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