From 2a7cb3915fb4ea55068e12fcef6d8938bfc1390c Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 9 Oct 2009 12:16:59 +0200 Subject: [PATCH] Use gtk_widget_get_window() instead of widget->window --- plug-ins/pygimp/gimpui.override | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug-ins/pygimp/gimpui.override b/plug-ins/pygimp/gimpui.override index debf26bed4..63a4ea0344 100644 --- a/plug-ins/pygimp/gimpui.override +++ b/plug-ins/pygimp/gimpui.override @@ -747,10 +747,10 @@ pygimp_dialog_close(GtkWidget *widget) { /* Synthesize delete_event to close dialog. */ - if (widget->window) { + if (gtk_widget_get_window (widget)) { GdkEvent *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);