From 7371064845e71778a60de7e90575ad2a77f5b438 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sat, 1 Feb 2003 01:47:01 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ demos/gtk-demo/pixbufs.c | 2 +- demos/pixbuf-demo.c | 4 ++-- demos/testpixbuf.c | 2 +- 8 files changed, 34 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 517ca8b0a..f31c7772c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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. + Fri Jan 31 17:33:00 2003 Manish Singh * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 517ca8b0a..f31c7772c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +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. + Fri Jan 31 17:33:00 2003 Manish Singh * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 517ca8b0a..f31c7772c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +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. + Fri Jan 31 17:33:00 2003 Manish Singh * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 517ca8b0a..f31c7772c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +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. + Fri Jan 31 17:33:00 2003 Manish Singh * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 517ca8b0a..f31c7772c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +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. + Fri Jan 31 17:33:00 2003 Manish Singh * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state 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 } -- 2.43.2