[gtk+/refactor: 114/138] tests/testselection.c: Use accessor functions to access GtkWidget



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

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

 tests/testselection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testselection.c b/tests/testselection.c
index 77ac345..ff7a99c 100644
--- a/tests/testselection.c
+++ b/tests/testselection.c
@@ -152,7 +152,7 @@ selection_toggled (GtkWidget *widget)
     {
       if (have_selection)
 	{
-	  if (gdk_selection_owner_get (GDK_SELECTION_PRIMARY) == widget->window)
+          if (gdk_selection_owner_get (GDK_SELECTION_PRIMARY) == gtk_widget_get_window (widget))
 	    gtk_selection_owner_set (NULL, GDK_SELECTION_PRIMARY,
 				     GDK_CURRENT_TIME);
 	  have_selection = FALSE;



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