diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-07 14:47:44 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-07 14:47:44 +0800 |
commit | 83a766e5af1226d93d67476ea73bce921c681f0e (patch) | |
tree | a5d72ae4264bdc87a3b24aa50d98cc02ff62e1fd /shell/e-shell-view-menu.c | |
parent | cf022042c82501ba50622b144829a4ce9e301ecb (diff) | |
download | gsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.tar.gz gsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.tar.zst gsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.zip |
Machinery for quitting and handling the relationship between a shell
and its views.
svn path=/trunk/; revision=2862
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r-- | shell/e-shell-view-menu.c | 19 |
1 files changed, 18 insertions, 1 deletions
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 * |