diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2008-08-08 10:04:44 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-08-08 10:04:44 +0800 |
commit | 91a6b6899e5568ed34f913bedb538dd6c9e35b32 (patch) | |
tree | 972b7185e7c71cff2eac23e7921aa6f679d9ad9b /shell/e-shell-window-actions.c | |
parent | 03a3e6f84638c62c7848eee4d6f71cc4b1a7c1b8 (diff) | |
download | gsoc2013-evolution-91a6b6899e5568ed34f913bedb538dd6c9e35b32.tar.gz gsoc2013-evolution-91a6b6899e5568ed34f913bedb538dd6c9e35b32.tar.zst gsoc2013-evolution-91a6b6899e5568ed34f913bedb538dd6c9e35b32.zip |
Commit progress, which breaks everything.
svn path=/branches/kill-bonobo/; revision=35930
Diffstat (limited to 'shell/e-shell-window-actions.c')
-rw-r--r-- | shell/e-shell-window-actions.c | 11 |
1 files changed, 9 insertions, 2 deletions
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 |