From 7371064845e71778a60de7e90575ad2a77f5b438 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sat, 1 Feb 2003 01:47:01 +0000 Subject: demos/pixbuf-demo.c demos/testpixbuf.c remove deprecated gtk_timeout_* Fri Jan 31 17:45:22 2003 Manish Singh * demos/pixbuf-demo.c * demos/testpixbuf.c * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage. --- demos/gtk-demo/pixbufs.c | 2 +- demos/pixbuf-demo.c | 4 ++-- demos/testpixbuf.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'demos') 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 } -- cgit v1.2.1