From 16ae019e454d2a7450c2346f43d6cbac7b3f17ab Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 19 Feb 2003 19:42:04 +0000 Subject: [PATCH] Replace gtk_timeout_* by their GLib counterparts. (#106532) 2003-02-19 Matthias Clasen * tests/testdnd.c: Replace gtk_timeout_* by their GLib counterparts. (#106532) --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-4 | 3 +++ ChangeLog.pre-2-6 | 3 +++ ChangeLog.pre-2-8 | 3 +++ tests/testdnd.c | 10 +++++----- 6 files changed, 20 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1737030ad8..73e80cedaa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-02-19 Matthias Clasen + * tests/testdnd.c: Replace gtk_timeout_* by their GLib + counterparts. (#106532) + * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the keys_changed virtual function with the keys_changed signal. (#106512, Jeff Franks) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 1737030ad8..73e80cedaa 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2003-02-19 Matthias Clasen + * tests/testdnd.c: Replace gtk_timeout_* by their GLib + counterparts. (#106532) + * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the keys_changed virtual function with the keys_changed signal. (#106512, Jeff Franks) diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 1737030ad8..73e80cedaa 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,8 @@ 2003-02-19 Matthias Clasen + * tests/testdnd.c: Replace gtk_timeout_* by their GLib + counterparts. (#106532) + * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the keys_changed virtual function with the keys_changed signal. (#106512, Jeff Franks) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 1737030ad8..73e80cedaa 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,8 @@ 2003-02-19 Matthias Clasen + * tests/testdnd.c: Replace gtk_timeout_* by their GLib + counterparts. (#106532) + * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the keys_changed virtual function with the keys_changed signal. (#106512, Jeff Franks) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 1737030ad8..73e80cedaa 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2003-02-19 Matthias Clasen + * tests/testdnd.c: Replace gtk_timeout_* by their GLib + counterparts. (#106532) + * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the keys_changed virtual function with the keys_changed signal. (#106512, Jeff Franks) diff --git a/tests/testdnd.c b/tests/testdnd.c index 410ad242c6..8e4e9333a9 100644 --- a/tests/testdnd.c +++ b/tests/testdnd.c @@ -446,7 +446,7 @@ popup_motion (GtkWidget *widget, if (popdown_timer) { g_print ("removed popdown\n"); - gtk_timeout_remove (popdown_timer); + g_source_remove (popdown_timer); popdown_timer = 0; } } @@ -465,7 +465,7 @@ popup_leave (GtkWidget *widget, if (!popdown_timer) { g_print ("added popdown\n"); - popdown_timer = gtk_timeout_add (500, popdown_cb, NULL); + popdown_timer = g_timeout_add (500, popdown_cb, NULL); } } } @@ -514,7 +514,7 @@ popup_cb (gpointer data) popped_up = TRUE; } - popdown_timer = gtk_timeout_add (500, popdown_cb, NULL); + popdown_timer = g_timeout_add (500, popdown_cb, NULL); g_print ("added popdown\n"); popup_timer = FALSE; @@ -530,7 +530,7 @@ popsite_motion (GtkWidget *widget, guint time) { if (!popup_timer) - popup_timer = gtk_timeout_add (500, popup_cb, NULL); + popup_timer = g_timeout_add (500, popup_cb, NULL); return TRUE; } @@ -542,7 +542,7 @@ popsite_leave (GtkWidget *widget, { if (popup_timer) { - gtk_timeout_remove (popup_timer); + g_source_remove (popup_timer); popup_timer = 0; } }