[gtk+/refactor: 74/138] gtk/gtkdialog.c: use accessor functions to access GtkWidget



commit 80fcfc041154597f749378170b55fb9011f90e47
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Aug 11 23:14:03 2010 +0200

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

 gtk/gtkdialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 7cce1d4..e62f68e 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -497,8 +497,8 @@ gtk_dialog_close (GtkDialog *dialog)
   GdkEvent *event;
 
   event = gdk_event_new (GDK_DELETE);
-  
-  event->any.window = g_object_ref (widget->window);
+
+  event->any.window = g_object_ref (gtk_widget_get_window (widget));
   event->any.send_event = TRUE;
   
   gtk_main_do_event (event);



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