diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/images.c | 2 | ||||
-rw-r--r-- | demos/gtk-demo/pixbufs.c | 2 | ||||
-rw-r--r-- | demos/pixbuf-demo.c | 2 | ||||
-rw-r--r-- | demos/testanimation.c | 2 | ||||
-rw-r--r-- | demos/testpixbuf.c | 2 |
5 files changed, 6 insertions, 4 deletions
diff --git a/demos/gtk-demo/images.c b/demos/gtk-demo/images.c index 7fc1fa7c14..ce22eb56aa 100644 --- a/demos/gtk-demo/images.c +++ b/demos/gtk-demo/images.c @@ -255,7 +255,7 @@ start_progressive_loading (GtkWidget *image) * The timeout simply simulates a slow data source by inserting * pauses in the reading process. */ - load_timeout = g_timeout_add (150, + load_timeout = gdk_threads_add_timeout (150, progressive_timeout, image); } 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; diff --git a/demos/pixbuf-demo.c b/demos/pixbuf-demo.c index eaacf83f59..dd6923bbcc 100644 --- a/demos/pixbuf-demo.c +++ b/demos/pixbuf-demo.c @@ -225,7 +225,7 @@ main (int argc, char **argv) gtk_container_add (GTK_CONTAINER (window), da); - timeout_id = g_timeout_add (FRAME_DELAY, timeout, NULL); + timeout_id = gdk_threads_add_timeout (FRAME_DELAY, timeout, NULL); gtk_widget_show_all (window); gtk_main (); diff --git a/demos/testanimation.c b/demos/testanimation.c index 5b2da4a228..029f69c9b7 100644 --- a/demos/testanimation.c +++ b/demos/testanimation.c @@ -301,7 +301,7 @@ start_progressive_loading (GtkWidget *image) * The timeout simply simulates a slow data source by inserting * pauses in the reading process. */ - lc->load_timeout = g_timeout_add (100, + lc->load_timeout = gdk_threads_add_timeout (100, progressive_timeout, image); } diff --git a/demos/testpixbuf.c b/demos/testpixbuf.c index 676171bb43..84011004a9 100644 --- a/demos/testpixbuf.c +++ b/demos/testpixbuf.c @@ -628,7 +628,7 @@ main (int argc, char **argv) status.readlen = readlen; - status.timeout = g_timeout_add (100, update_timeout, &status); + status.timeout = gdk_threads_add_timeout (100, update_timeout, &status); } #endif } |