Re: Scrolling performance



On Mon, Jun 26, 2006 at 08:14:14PM +0200, Clemens Eisserer wrote:
> As far as I understood from the gtk-tutorial there are some widgets
> which are windows themself ... which is a bit confusing for me.
> I tried to find the entrance point where X tells gtk windows to
> expose,

X tells Gtk+ nothing, Gtk+ is built on top of Gdk and Gdk
receives the X events.

Start with gdk_event_dispatch() in gdk/x11/gdkevents-x11.c.

It is also instructive to compile Gtk+ with --enable-debug=yes
and then do for instance

  GDK_DEBUG=events ./someprogram

> does this happen once for the main "window" and gtk repaints
> the widgets in an hirarchial order or do the widgets which are windows
> themself get seperate expose events delivered?

Widgets with their own windows receive their own expose
events.  Also have a look at

  http://primates.ximian.com/~federico/misc/gtk-drawing-model/

which explains the basic concepts.

Yeti


--
Anonyms eat their boogers.



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