gtk+ r21307 - in trunk: . gdk



Author: matthiasc
Date: Sun Sep  7 00:43:19 2008
New Revision: 21307
URL: http://svn.gnome.org/viewvc/gtk+?rev=21307&view=rev

Log:
2008-09-06  Matthias Clasen  <mclasen redhat com>

        Bug 550989 â gdk_display_put_event() should call
        g_main_context_wakeup()

        * gdk/gdkdisplay.c (gdk_display_put_event): Wake up the main loop
        after queueing the event. Patch by Owen Taylor



Modified:
   trunk/ChangeLog
   trunk/gdk/gdkdisplay.c

Modified: trunk/gdk/gdkdisplay.c
==============================================================================
--- trunk/gdk/gdkdisplay.c	(original)
+++ trunk/gdk/gdkdisplay.c	Sun Sep  7 00:43:19 2008
@@ -258,6 +258,8 @@
   g_return_if_fail (event != NULL);
 
   _gdk_event_queue_append (display, gdk_event_copy (event));
+  /* If the main loop is blocking in a different thread, wake it up */
+  g_main_context_wakeup (NULL); 
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]