Re: GtkWindow from window ID
- From: Paolo Molaro <lupus lettere unipd it>
- To: gnome-list gnome org
- Subject: Re: GtkWindow from window ID
- Date: Fri, 7 May 1999 10:10:37 +0200
On Thu, May 06, 1999 at 06:38:26PM -0400, Havoc Pennington wrote:
> 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...
You may want to #include gdkprivate.h and use gdk_window_lookup(XID)
to get the GdkWindow if the window was created with gdk.
This is gdk private stuff, however, and may change in the future.
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]