On Fri, 2007-02-02 at 12:20 -0700, Rob Barnes wrote: > I'm trying to write a simple program that draws a moving polygon on the > screen. I started with the scribble-simple example and modified to draw the > moving shape by redrawing the shape in the background color in the previous > position first then drawing it in the foreground color in the current > position. It works fine, except it only refreshes when something happens > such as mouse movement, click, expose, window adjustment. So to keep things > moving I have to keep moving the mouse around, but it stops if the mouse > stops, even though the polygon is being redrawn contently.
Make sure you request a redraw every time the underlying state changes - check out gtk_widget_queue_draw. -- Michael Ekstrand Research Assistant, Scalable Computing Laboratory Goanna, compute cluster and InfiniBand network monitor tool: http://www.scl.ameslab.gov/Projects/Monitor/ _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list