Don't use g_idle_add to schedule idles in GDK

We need to use gdk_threads_add_idle, in order to keep GDK code
under the GDK lock.

Bug 629277
(cherry picked from commit 08dd02fe25)
This commit is contained in:
Matthias Clasen 2010-09-10 22:35:36 -04:00
parent a3c3031a0e
commit 9190497b4a

View File

@ -10427,10 +10427,10 @@ _gdk_synthesize_crossing_events_for_geometry_change (GdkWindow *changed_window)
!toplevel_priv->synthesize_crossing_event_queued)
{
toplevel_priv->synthesize_crossing_event_queued = TRUE;
g_idle_add_full (GDK_PRIORITY_EVENTS - 1,
do_synthesize_crossing_event,
g_object_ref (toplevel),
g_object_unref);
gdk_threads_add_idle_full (GDK_PRIORITY_EVENTS - 1,
do_synthesize_crossing_event,
g_object_ref (toplevel),
g_object_unref);
}
}