Re: Redrawing drawing area from main loop timer



Hi Jerome,

On 4/12/07, Jerome Blondel <jeromeblondel yahoo fr> wrote:
I'm trying to redraw periodically a drawing area from the main loop
using g_timer_add. In the GSourceFunc i tried to emit a signal to
my drawing area :

You need to use gtk_widget_queue_draw_area():

http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#id3686176

To queue a repaint on a rectangular part of a widget.

John



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