]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkuimanager.c
Replace a lot of idle and timeout calls by the new gdk_threads api.
[~andy/gtk] / gtk / gtkuimanager.c
index 8a3685f76ea06f39460168dec2f5cf5d0a000519..9e241c946a8fc777778fd45ddd7386c8d70d2105 100644 (file)
@@ -2620,9 +2620,7 @@ do_updates (GtkUIManager *self)
 static gboolean
 do_updates_idle (GtkUIManager *self)
 {
-  GDK_THREADS_ENTER ();
   do_updates (self);
-  GDK_THREADS_LEAVE ();
 
   return FALSE;
 }
@@ -2633,7 +2631,8 @@ queue_update (GtkUIManager *self)
   if (self->private_data->update_tag != 0)
     return;
 
-  self->private_data->update_tag = g_idle_add ((GSourceFunc)do_updates_idle, 
+  self->private_data->update_tag = gdk_threads_add_idle (
+                                              (GSourceFunc)do_updates_idle, 
                                               self);
 }