diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/pixbufs.c | 2 | ||||
-rw-r--r-- | demos/pixbuf-demo.c | 4 | ||||
-rw-r--r-- | demos/testpixbuf.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/demos/gtk-demo/pixbufs.c b/demos/gtk-demo/pixbufs.c index 9a50d6f3c..d78885067 100644 --- a/demos/gtk-demo/pixbufs.c +++ b/demos/gtk-demo/pixbufs.c @@ -252,7 +252,7 @@ do_pixbufs (void) gtk_container_add (GTK_CONTAINER (window), da); - timeout_id = gtk_timeout_add (FRAME_DELAY, timeout, NULL); + timeout_id = g_timeout_add (FRAME_DELAY, timeout, NULL); } } diff --git a/demos/pixbuf-demo.c b/demos/pixbuf-demo.c index 5425f4bc8..eaacf83f5 100644 --- a/demos/pixbuf-demo.c +++ b/demos/pixbuf-demo.c @@ -187,7 +187,7 @@ static guint timeout_id; static void destroy_cb (GtkObject *object, gpointer data) { - gtk_timeout_remove (timeout_id); + g_source_remove (timeout_id); timeout_id = 0; gtk_main_quit (); @@ -225,7 +225,7 @@ main (int argc, char **argv) gtk_container_add (GTK_CONTAINER (window), da); - timeout_id = gtk_timeout_add (FRAME_DELAY, timeout, NULL); + timeout_id = g_timeout_add (FRAME_DELAY, timeout, NULL); gtk_widget_show_all (window); gtk_main (); diff --git a/demos/testpixbuf.c b/demos/testpixbuf.c index 26bcd1d02..a40d3b202 100644 --- a/demos/testpixbuf.c +++ b/demos/testpixbuf.c @@ -626,7 +626,7 @@ main (int argc, char **argv) status.readlen = readlen; - status.timeout = gtk_timeout_add (100, update_timeout, &status); + status.timeout = g_timeout_add (100, update_timeout, &status); } #endif } |