How to get X window ID of a gtk window?



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?)

Regards,
Nils
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nils Philippsen                      @college: nils@rhlx01.rz.fht-esslingen.de
Vogelsangstrasse 115                @home: nils@wombat.dialup.fht-esslingen.de
D 70197 Stuttgart                     Do not meddle in the affairs of wizards,
+49-711-6599405                     for you are crunchy and good with ketchup.




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