Re: [gtk-list] How to get X window ID of a gtk window?
- From: raster redhat com
- To: gtk-list redhat com
- cc: nils rhlx01 rz fht-esslingen de
- Subject: Re: [gtk-list] How to get X window ID of a gtk window?
- Date: Fri, 16 Jan 1998 10:45:02 -0500 (EST)
On 16 Jan, Nils Philippsen shouted:
-> Hello,
->
-> I wnated to know how one could get the X window id of a goven GTK window. I
-> need this to set a default icon the WM uses instead of an 'unknown
-> application'-icon. I found out that I must dig this way gtk_window ->
-> gdk_window -> X_window but it seems I'm not wit enough to find out the correct
-> member names to get the GDK window from the GTK and the X window from the GDK
-> window :-( (maybe there are some cast macros for this?)
get your pointer to the gdk_window then:
GdkWindowPrivate *priv;
Window xwin;
Display *xdisp;
priv=(GdkWindowPrivate *)gdk_window;
xwin=priv->xwindow;
and even better:
xdisp=priv->xdisplay;
there's more interesting stuff there too.. check gdkprivate.h :)
--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
raster@rasterman.com /\___ /\ ___/||\___ ____/|/\___ raster@redhat.com
Carsten Haitzler | _ //__\\ __||_ __\\ ___|| _ / Red Hat Advanced
218/21 Conner Drive || // __ \\_ \ | | \ _/_|| / Development Labs
Chapel Hill NC 27514 USA ||\\\/ \//__/ |_| /___/||\\ 919 547 0012 ext 282
+1 (919) 929 9443, 801 4392 For pure Enlightenmenthttp://www.rasterman.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]