Re: Redraw GtkDrawingArea



Michael Ott <michael zolnott de> writes:

> In my application i draw some graphs after reading it from socket. But
> before i draw the new graphs i have to clear the area. 
> How can i do this?

(a) You should do all drawing in the expose handler

(b) To redraw the widget, use gtk_widget_queue_draw(). To only redraw
    a part of the widget, use gtk_widget_queue_draw_are(). These
    functions will cause gtk+ to generate expose events.


Søren



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