From 83a766e5af1226d93d67476ea73bce921c681f0e Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sun, 7 May 2000 06:47:44 +0000 Subject: Machinery for quitting and handling the relationship between a shell and its views. svn path=/trunk/; revision=2862 --- shell/e-shell-view-menu.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'shell/e-shell-view-menu.c') diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index d1fe6e959f..156b81ed30 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -29,6 +29,23 @@ #include "e-shell-view.h" #include "e-shell-view-menu.h" + +static void +command_quit (GtkWidget *widget, + gpointer data) +{ + EShellView *shell_view; + EShell *shell; + + shell_view = E_SHELL_VIEW (data); + + shell = e_shell_view_get_shell (shell_view); + e_shell_quit (shell); +} + + +/* Unimplemented commands. */ + #define DEFINE_UNIMPLEMENTED(func) \ static void \ func (GtkWidget *widget, gpointer data) \ @@ -47,11 +64,11 @@ DEFINE_UNIMPLEMENTED (command_new_journal_entry) DEFINE_UNIMPLEMENTED (command_new_note) DEFINE_UNIMPLEMENTED (command_open_selected_items) DEFINE_UNIMPLEMENTED (command_save_as) -DEFINE_UNIMPLEMENTED (command_quit) DEFINE_UNIMPLEMENTED (command_close_open_items) DEFINE_UNIMPLEMENTED (command_toggle_shortcut_bar) DEFINE_UNIMPLEMENTED (command_toggle_treeview) + /* * FIXME * -- cgit