diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-12-22 19:10:43 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-12-22 19:10:43 +0000 |
commit | 721c3bc10182cacf1a98baddde3c94e59797ddb7 (patch) | |
tree | 78b2e3ae3c00133a58f09653aff664e4ab0305e9 /tests/testdnd.c | |
parent | 7854bd1b6e6102aff426bf6a48606c4a9b12b7c2 (diff) | |
download | gtk+-721c3bc10182cacf1a98baddde3c94e59797ddb7.tar.gz |
Replace a lot of idle and timeout calls by the new gdk_threads api.
2006-12-22 Matthias Clasen <mclasen@redhat.com>
* *.c: Replace a lot of idle and timeout calls by
the new gdk_threads api.
Diffstat (limited to 'tests/testdnd.c')
-rw-r--r-- | tests/testdnd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testdnd.c b/tests/testdnd.c index d2e9a5c488..608cfc8693 100644 --- a/tests/testdnd.c +++ b/tests/testdnd.c @@ -485,12 +485,12 @@ popup_leave (GtkWidget *widget, if (!popdown_timer) { g_print ("added popdown\n"); - popdown_timer = g_timeout_add (500, popdown_cb, NULL); + popdown_timer = gdk_threads_add_timeout (500, popdown_cb, NULL); } } } -gint +gboolean popup_cb (gpointer data) { if (!popped_up) @@ -534,7 +534,7 @@ popup_cb (gpointer data) popped_up = TRUE; } - popdown_timer = g_timeout_add (500, popdown_cb, NULL); + popdown_timer = gdk_threads_add_timeout (500, popdown_cb, NULL); g_print ("added popdown\n"); popup_timer = FALSE; @@ -550,7 +550,7 @@ popsite_motion (GtkWidget *widget, guint time) { if (!popup_timer) - popup_timer = g_timeout_add (500, popup_cb, NULL); + popup_timer = gdk_threads_add_timeout (500, popup_cb, NULL); return TRUE; } |