Re: GtkWidgets and their underlying GdkWindows



On Mon, 2007-09-10 at 12:10 -0400, zentara wrote:
> On Tue, 04 Sep 2007 16:42:22 +1000
> Andrew Cowie <andrew operationaldynamics com> wrote:
> 
> >We all "know" that some GtkWidgets have their own GdkWindows (ie
> >GtkButtons), and some do not (ie GtkLabels). At least, that's what the
> >documentation tells us.
> >
> >As I understand it, for GtkWidget* widget,
> >
> >    widget->window
> >
> >is this GdkWindow*, if so assigned.
> >
> >++
> >
> >I was working on writing a method to expose this in the Java bindings,
> >and was somewhat surprised to find that all the Widgets in my little
> >test app had the _same_ GdkWindow. Huh?

many widgets do not have their own GdkWindow, but instead they draw
themslves into/onto the window of a parent widget.





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