[gtk+/refactor: 137/145] demos/gtk-demo/changedisplay.c: Use accessor functions to access GtkWidget



commit 5986b3da02929e3dbaae937797e971d6ca6617f6
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Aug 16 00:38:12 2010 +0200

    demos/gtk-demo/changedisplay.c: Use accessor functions to access GtkWidget

 demos/gtk-demo/changedisplay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/demos/gtk-demo/changedisplay.c b/demos/gtk-demo/changedisplay.c
index b178364..42baf3b 100644
--- a/demos/gtk-demo/changedisplay.c
+++ b/demos/gtk-demo/changedisplay.c
@@ -128,7 +128,7 @@ query_for_toplevel (GdkScreen  *screen,
   gtk_widget_show_all (popup);
   cursor = gdk_cursor_new_for_display (display, GDK_CROSSHAIR);
 
-  if (gdk_pointer_grab (popup->window, FALSE,
+  if (gdk_pointer_grab (gtk_widget_get_window (popup), FALSE,
 			GDK_BUTTON_RELEASE_MASK,
 			NULL,
 			cursor,



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