Re: Possible to get GtkWindow from a GdkWindow



Hi

I have access to a GdkWindow, and was wondering if it could be possible
to get tot he GtkWindow?

GdkWindow isn't really related to a "Window" (like GtkWindow). GDK knows
nothing about GTK. GdkWindow is something like an extended GdkDrawable.
Many GtkWidgets have their own "GdkWindow", where they draw to - see the
Docs -> GtkWidget struct.

As far as I know it's one way: GTK -> GDK -> X

The registered callbacks and Xatom/message/whatever filters just post
general messages, which the upper levels "interpret".

Jan-Marek



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