aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view-menu.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-09-24 05:30:57 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-09-24 05:30:57 +0800
commit92ec933b198f15789e028cd3c3dc144ba00bb862 (patch)
tree5de5c8405635b2f7f38fbaf358cd130e14ba10f2 /shell/e-shell-view-menu.c
parent944861b19874e2066c412d1dabf09ce00cc35586 (diff)
downloadgsoc2013-evolution-92ec933b198f15789e028cd3c3dc144ba00bb862.tar.gz
gsoc2013-evolution-92ec933b198f15789e028cd3c3dc144ba00bb862.tar.zst
gsoc2013-evolution-92ec933b198f15789e028cd3c3dc144ba00bb862.zip
Use e_shell_request_close_view().
* e-shell-view-menu.c (command_close): Use e_shell_request_close_view(). * e-shell.c (e_shell_request_close_view): New, code moved out of view_delete_event_cb(). (view_delete_event_cb): Use it. svn path=/trunk/; revision=18183
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r--shell/e-shell-view-menu.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c
index e8761ff349..b4f66baeb6 100644
--- a/shell/e-shell-view-menu.c
+++ b/shell/e-shell-view-menu.c
@@ -130,17 +130,11 @@ command_close (BonoboUIComponent *uih,
const char *path)
{
EShellView *shell_view;
- GdkEvent delete_event;
shell_view = E_SHELL_VIEW (data);
- /* Send a delete_event to the window. This way we make sure that the
- behaviors for delete_event and the menu item are the same. */
-
- delete_event.any.type = GDK_DELETE;
- delete_event.any.window = GTK_WIDGET (shell_view)->window;
- delete_event.any.send_event = 0;
- gtk_widget_event (GTK_WIDGET (shell_view), &delete_event);
+ if (e_shell_request_close_view (e_shell_view_get_shell (shell_view), shell_view))
+ gtk_widget_destroy (GTK_WIDGET (shell_view));
}
static void