Re: Redrawing a widget



 
> To your problem (also described in a second mail of yours): I'd suggest
> you change the logic of your program, so that the GL paint functions
> take place in the expose_event handler. When you want to clear the GL
> area for example, you set a flag that the desired painting function is
> to clear and create an expose_event using gtk_widget_queue_draw(). Your
> expose handler then takes care of drawing the right stuff to the screen.
> This will also make your application behave correctly when it gets
> expose_events from the outside, for example if your window was (partially)
> hidden and becomes visible again.
> 
> Salut, Sven

Ok, i see.. i've already done something like that ;)

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

Ignacio Nodal




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