diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2003-12-29 11:35:43 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2003-12-29 11:35:43 +0000 |
commit | 912b0944dc4838c49bf600c7b2613931d3c383e2 (patch) | |
tree | 99e1ac52ed95d08d9fa47782e5c5e8ae19bec25a /gtk/gtktoolbar.c | |
parent | 90646daf190e95981dda238d3d08e882a54f254f (diff) | |
download | gdk-pixbuf-912b0944dc4838c49bf600c7b2613931d3c383e2.tar.gz |
Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle functions.
Mon Dec 29 12:22:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkuimanager.c (do_updates):
* gtk/gtktoolbar.c (slide_idle_handler):
* gtk/gtkdnd.c (gtk_drag_update_idle):
Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle
functions. (#130157, patch from Olexiy Avramchenko).
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r-- | gtk/gtktoolbar.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index e0fe4ae93..d4af5cc1c 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -1058,9 +1058,13 @@ static gboolean slide_idle_handler (gpointer data) { GtkToolbar *toolbar = data; - GtkToolbarPrivate *priv = GTK_TOOLBAR_GET_PRIVATE (toolbar); + GtkToolbarPrivate *priv; GList *list; + GDK_THREADS_ENTER (); + + priv = GTK_TOOLBAR_GET_PRIVATE (toolbar); + if (priv->need_sync) { gdk_flush (); @@ -1083,13 +1087,16 @@ slide_idle_handler (gpointer data) GTK_WIDGET_CHILD_VISIBLE (content->item))) { gtk_widget_queue_resize_no_redraw (GTK_WIDGET (toolbar)); + + GDK_THREADS_LEAVE (); return TRUE; } } priv->is_sliding = FALSE; priv->idle_id = 0; - + + GDK_THREADS_LEAVE(); return FALSE; } |