diff options
Diffstat (limited to 'shell/e-shell-window-actions.c')
-rw-r--r-- | shell/e-shell-window-actions.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c index 9b14730c7b..d33be7de1d 100644 --- a/shell/e-shell-window-actions.c +++ b/shell/e-shell-window-actions.c @@ -674,12 +674,16 @@ static void action_close_cb (GtkAction *action, EShellWindow *shell_window) { - GtkWidget *widget = GTK_WIDGET (shell_window); + GtkWidget *widget; + GdkWindow *window; GdkEvent *event; + widget = GTK_WIDGET (shell_window); + window = gtk_widget_get_window (widget); + /* Synthesize a delete_event on this window. */ event = gdk_event_new (GDK_DELETE); - event->any.window = g_object_ref (widget->window); + event->any.window = g_object_ref (window); event->any.send_event = TRUE; gtk_main_do_event (event); gdk_event_free (event); |