Re: What, in detail, the GDK do?



On Mon, 2009-12-28 at 16:21 +0100, David Nečas wrote:
> On Mon, Dec 28, 2009 at 12:46:36PM -0200, frederico schardong wrote:
> > >gdk wraps the business of creating a window and getting events
> > 
> > only a window or all the widgets?
> 
> X (or Gdk) Window is a thing that can receive events and/or can be
> drawn on.  Many widgets have their own windows, for instance, text
> entries or menus.

as of gtk+ 2.18:

	s/Many/Some/

non-top level widgets (where "top level" here mostly means: GtkWindow
and sub-classes, even though GtkMenu has to have a real X11 window
associated with it for stacking purposes) that used X11 windows through
GDK for event handling and drawing purposes now do not have those X11
windows any more - though they maintain the GdkWindow object for
internal state handling and for ABI compatibility.

usually, a GdkWindow is not associated to an X11 Window unless you
explicitly require a XID out of it - at which point GDK will create a
native Window and hand over to you its XID.

ciao,
 Emmanuele.



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