From 91a6b6899e5568ed34f913bedb538dd6c9e35b32 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 8 Aug 2008 02:04:44 +0000 Subject: Commit progress, which breaks everything. svn path=/branches/kill-bonobo/; revision=35930 --- shell/e-shell-window-actions.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'shell/e-shell-window-actions.c') diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c index 580f147920..e11563fa10 100644 --- a/shell/e-shell-window-actions.c +++ b/shell/e-shell-window-actions.c @@ -656,8 +656,15 @@ static void action_close_cb (GtkAction *action, EShellWindow *window) { - if (e_shell_request_close_window (window)) - gtk_widget_destroy (GTK_WIDGET (window)); + GtkWidget *widget = GTK_WIDGET (window); + GdkEvent *event; + + /* Synthesize a delete_event on this window. */ + event = gdk_event_new (GDK_DELETE); + event->any.window = g_object_ref (widget->window); + event->any.send_event = TRUE; + gtk_main_do_event (event); + gdk_event_free (event); } static void -- cgit