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 /gtk/gtkexpander.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 'gtk/gtkexpander.c')
-rw-r--r-- | gtk/gtkexpander.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c index 33333d5f12..e078da7e8b 100644 --- a/gtk/gtkexpander.c +++ b/gtk/gtkexpander.c @@ -1004,7 +1004,7 @@ gtk_expander_drag_motion (GtkWidget *widget, settings = gtk_widget_get_settings (widget); g_object_get (settings, "gtk-timeout-expand", &timeout, NULL); - priv->expand_timer = g_timeout_add (timeout, (GSourceFunc) expand_timeout, expander); + priv->expand_timer = gdk_threads_add_timeout (timeout, (GSourceFunc) expand_timeout, expander); } return TRUE; @@ -1276,8 +1276,6 @@ gtk_expander_animation_timeout (GtkExpander *expander) GdkRectangle area; gboolean finish = FALSE; - GDK_THREADS_ENTER(); - if (GTK_WIDGET_REALIZED (expander)) { get_expander_bounds (expander, &area); @@ -1317,8 +1315,6 @@ gtk_expander_animation_timeout (GtkExpander *expander) gtk_widget_queue_resize (GTK_WIDGET (expander)); } - GDK_THREADS_LEAVE(); - return !finish; } @@ -1331,7 +1327,7 @@ gtk_expander_start_animation (GtkExpander *expander) g_source_remove (priv->animation_timeout); priv->animation_timeout = - g_timeout_add (50, + gdk_threads_add_timeout (50, (GSourceFunc) gtk_expander_animation_timeout, expander); } |