--- origsrc/glib-2.32.3/glib/gmain.c	2012-06-13 11:02:09.511541800 -0400
+++ src/glib-2.32.3/glib/gmain.c	2012-06-13 11:04:06.067208400 -0400
@@ -2976,7 +2976,7 @@ g_main_context_check (GMainContext *cont
       return FALSE;
     }
 
-  if (context->wake_up_rec.events)
+  if (context->wake_up_rec.revents)
     g_wakeup_acknowledge (context->wakeup);
 
   /* If the set of poll file descriptors changed, bail out
