From 721c3bc10182cacf1a98baddde3c94e59797ddb7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 22 Dec 2006 19:10:43 +0000 Subject: Replace a lot of idle and timeout calls by the new gdk_threads api. 2006-12-22 Matthias Clasen * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api. --- gtk/gtktooltips.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gtk/gtktooltips.c') diff --git a/gtk/gtktooltips.c b/gtk/gtktooltips.c index d203082d7..458f9e410 100644 --- a/gtk/gtktooltips.c +++ b/gtk/gtktooltips.c @@ -446,21 +446,17 @@ gtk_tooltips_draw_tips (GtkTooltips *tooltips) gtk_widget_show (tooltips->tip_window); } -static gint +static gboolean gtk_tooltips_timeout (gpointer data) { GtkTooltips *tooltips = (GtkTooltips *) data; - GDK_THREADS_ENTER (); - if (tooltips->active_tips_data != NULL && GTK_WIDGET_DRAWABLE (tooltips->active_tips_data->widget)) gtk_tooltips_draw_tips (tooltips); tooltips->timer_tag = 0; - GDK_THREADS_LEAVE (); - return FALSE; } @@ -620,7 +616,7 @@ gtk_tooltips_start_delay (GtkTooltips *tooltips, delay = STICKY_DELAY; else delay = tooltips->delay; - tooltips->timer_tag = g_timeout_add (delay, + tooltips->timer_tag = gdk_threads_add_timeout (delay, gtk_tooltips_timeout, (gpointer) tooltips); } -- cgit v1.2.1