Re: Redrawing a widget



Ignacio Nodal <inodal teleline es> writes:

> What's the meaning of this "queue" in the gtk_widget_queue_draw()
> function? There is no specific explanation in the GTK Reference Manual.

Look at the source in gtkwidget.c.

gtk_widget_queue_draw() puts the draw command into the redraw_queue
which will be executed from the idle loop. The advantage is that 
multiple redraws are combined to one redraw if possible. This leads
to better performance and the application does not block like it
does when you call gtk_widget_draw().


Salut, Sven





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