From 721c3bc10182cacf1a98baddde3c94e59797ddb7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 22 Dec 2006 19:10:43 +0000 Subject: Replace a lot of idle and timeout calls by the new gdk_threads api. 2006-12-22 Matthias Clasen * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api. --- demos/gtk-demo/pixbufs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'demos/gtk-demo/pixbufs.c') diff --git a/demos/gtk-demo/pixbufs.c b/demos/gtk-demo/pixbufs.c index 18dd1ff816..5fad5aa7f7 100644 --- a/demos/gtk-demo/pixbufs.c +++ b/demos/gtk-demo/pixbufs.c @@ -187,7 +187,9 @@ timeout (gpointer data) : MAX (127, fabs (255 * cos (f * 2.0 * G_PI))))); } + GDK_THREADS_ENTER (); gtk_widget_queue_draw (da); + GDK_THREADS_LEAVE (); frame_num++; return TRUE; -- cgit v1.2.1