diff options
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; } |