Commit 912b0944 authored by Soeren Sandmann's avatar Soeren Sandmann Committed by Søren Sandmann Pedersen

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).
parent 90646daf
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).
2003-12-29 Anders Carlsson <andersca@gnome.org>
* gtk/gtkradiotoolbutton.c:
......
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).
2003-12-29 Anders Carlsson <andersca@gnome.org>
* gtk/gtkradiotoolbutton.c:
......
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).
2003-12-29 Anders Carlsson <andersca@gnome.org>
* gtk/gtkradiotoolbutton.c:
......
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).
2003-12-29 Anders Carlsson <andersca@gnome.org>
* gtk/gtkradiotoolbutton.c:
......
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).
2003-12-29 Anders Carlsson <andersca@gnome.org>
* gtk/gtkradiotoolbutton.c:
......
......@@ -3147,6 +3147,8 @@ gtk_drag_update_idle (gpointer data)
GdkDragAction possible_actions;
guint32 time;
GDK_THREADS_ENTER ();
info->update_idle = 0;
time = gtk_drag_get_event_time (info->last_event);
......@@ -3176,6 +3178,8 @@ gtk_drag_update_idle (gpointer data)
if (selection)
gtk_drag_source_check_selection (info, selection, time);
GDK_THREADS_LEAVE ();
return FALSE;
}
......
......@@ -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;
}
......
......@@ -2243,6 +2243,8 @@ update_node (GtkUIManager *self,
static gboolean
do_updates (GtkUIManager *self)
{
GDK_THREADS_ENTER ();
/* this function needs to check through the tree for dirty nodes.
* For such nodes, it needs to do the following:
*
......@@ -2259,6 +2261,8 @@ do_updates (GtkUIManager *self)
self->private_data->update_tag = 0;
GDK_THREADS_LEAVE ();
return FALSE;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment