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

This commit is contained in:
Javier Jardón 2010-08-11 23:14:03 +02:00
parent 379fc17fa9
commit 4def73b386

View File

@ -497,8 +497,8 @@ gtk_dialog_close (GtkDialog *dialog)
GdkEvent *event; GdkEvent *event;
event = gdk_event_new (GDK_DELETE); 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; event->any.send_event = TRUE;
gtk_main_do_event (event); gtk_main_do_event (event);