summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2003-02-01 01:47:01 +0000
committerManish Singh <yosh@src.gnome.org>2003-02-01 01:47:01 +0000
commit7371064845e71778a60de7e90575ad2a77f5b438 (patch)
tree5c512fb342f98e0d9e501fb5c02790d0548b35e5 /demos
parent9a970814777452257f7e02fcb740ab806a6bed73 (diff)
downloadgdk-pixbuf-7371064845e71778a60de7e90575ad2a77f5b438.tar.gz
demos/pixbuf-demo.c demos/testpixbuf.c remove deprecated gtk_timeout_*
Fri Jan 31 17:45:22 2003 Manish Singh <yosh@gimp.org> * demos/pixbuf-demo.c * demos/testpixbuf.c * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/pixbufs.c2
-rw-r--r--demos/pixbuf-demo.c4
-rw-r--r--demos/testpixbuf.c2
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
}