Re: GtkDrawingArea initialization



Hi,

sinsedrix voila fr writes:

> So you should emit an "exopose_event" on your DrawingArea, there are
> several ways to do it :
>   g_signal_emit_by_name(darea, "expose_event");

That would be just as wrong as drawing outside the expose_event handler.

>   gtk_widget_queue_draw_area(darea, x, y, w, h);
> but I prefer this one :
>   gtk_widget_queue_draw(darea);

That is the right way of doing it.


Sven



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