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



commit dffa5389a939d967e449b657d2778efd9c0352ba
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]