Re: Redraw GtkDrawingArea

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

 



Michael Ott <michael@xxxxxxxxxx> 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
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux