[gtk+/refactor: 113/145] tests/testsocket.c: Use accessor functions to access GtkWidget



commit c7ffecf000f6fd38032f0786a18eb111c437e6a5
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Aug 16 00:32:28 2010 +0200

    tests/testsocket.c: Use accessor functions to access GtkWidget

 tests/testsocket.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/testsocket.c b/tests/testsocket.c
index 103b965..b4ef476 100644
--- a/tests/testsocket.c
+++ b/tests/testsocket.c
@@ -286,7 +286,8 @@ grab_window_toggled (GtkToggleButton *button,
     {
       int status;
 
-      status = gdk_keyboard_grab (widget->window, FALSE, GDK_CURRENT_TIME);
+      status = gdk_keyboard_grab (gtk_widget_get_window (widget),
+                                  FALSE, GDK_CURRENT_TIME);
 
       if (status != GDK_GRAB_SUCCESS)
 	g_warning ("Could not grab keyboard!  (%s)", grab_string (status));



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