[gtk+/refactor: 52/145] gtk/gtkmain.c: use accessor functions to access GtkWidget



commit 943f4a174c49bf93e7fe5b9d518f8fc55e2ac7e2
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Aug 11 23:08:57 2010 +0200

    gtk/gtkmain.c: use accessor functions to access GtkWidget

 gtk/gtkmain.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index ea922a8..a7cd846 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1543,7 +1543,7 @@ gtk_main_do_event (GdkEvent *event)
       /* Unexpected GDK_DESTROY from the outside, ignore for
        * child windows, handle like a GDK_DELETE for toplevels
        */
-      if (!event_widget->parent)
+      if (!gtk_widget_get_parent (event_widget))
 	{
 	  g_object_ref (event_widget);
 	  if (!gtk_widget_event (event_widget, event) &&
@@ -2411,8 +2411,8 @@ gtk_propagate_event (GtkWidget *widget,
 	    handled_event = event->type != GDK_SCROLL;
 	  else
 	    handled_event = gtk_widget_event (widget, event);
-	      
-	  tmp = widget->parent;
+
+          tmp = gtk_widget_get_parent (widget);
 	  g_object_unref (widget);
 
 	  widget = tmp;



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