]> Pileus Git - ~andy/gtk/commitdiff
gdk/win32/gdkevents-win32.c: Fix build
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 6 Mar 2013 08:47:32 +0000 (16:47 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 6 Mar 2013 14:19:57 +0000 (22:19 +0800)
The variable "display" is not defined, causing the build to fail.
Judging from the code, it seems that it should be _gdk_display instead.

https://bugzilla.gnome.org/show_bug.cgi?id=694339

gdk/win32/gdkevents-win32.c

index 7866f3177166fdf9e3412836fe7a97a6d66db310..afa20742d805339b4a9577d023a282ae14751174 100644 (file)
@@ -3330,7 +3330,7 @@ gdk_event_prepare (GSource *source,
 
   *timeout = -1;
 
-  if (display->event_pause_count > 0)
+  if (_gdk_display->event_pause_count > 0)
     retval = FALSE;
   else
     retval = (_gdk_event_queue_find_first (_gdk_display) != NULL ||
@@ -3349,7 +3349,7 @@ gdk_event_check (GSource *source)
   
   gdk_threads_enter ();
 
-  if (display->event_pause_count > 0)
+  if (_gdk_display->event_pause_count > 0)
     retval = FALSE;
   else if (event_poll_fd.revents & G_IO_IN)
     retval = (_gdk_event_queue_find_first (_gdk_display) != NULL ||