diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-07-20 15:32:34 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-07-20 15:32:34 +0800 |
commit | 1168da7072a57fb9fc66be77df43e82392659c18 (patch) | |
tree | 7d6cd4043be44186bbda30bacda3a6ed624f7319 /shell/e-shell-view-menu.c | |
parent | b05db271facb10107b78a7d7c58a1ab9e744eda5 (diff) | |
download | gsoc2013-evolution-1168da7072a57fb9fc66be77df43e82392659c18.tar.gz gsoc2013-evolution-1168da7072a57fb9fc66be77df43e82392659c18.tar.zst gsoc2013-evolution-1168da7072a57fb9fc66be77df43e82392659c18.zip |
Added/fixed support for multiple views.
svn path=/trunk/; revision=4234
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r-- | shell/e-shell-view-menu.c | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index f1f966990e..42f6db342b 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -245,6 +245,22 @@ command_new_folder (BonoboUIHandler *uih, default_parent_folder); } +static void +command_new_view (BonoboUIHandler *uih, + void *data, + const char *path) +{ + EShellView *shell_view; + EShell *shell; + const char *current_uri; + + shell_view = E_SHELL_VIEW (data); + shell = e_shell_view_get_shell (shell_view); + current_uri = e_shell_view_get_current_uri (shell_view); + + e_shell_new_view (shell, current_uri); +} + /* Going to a folder. */ @@ -362,14 +378,18 @@ DEFINE_UNIMPLEMENTED (command_new_journal_entry) */ static GnomeUIInfo menu_file_new [] = { + { GNOME_APP_UI_ITEM, N_("View"), + NULL, command_new_view, NULL, + NULL, 0, 0, 'v', GDK_CONTROL_MASK | GDK_SHIFT_MASK }, + { GNOME_APP_UI_ITEM, N_("_Folder"), NULL, command_new_folder, NULL, - NULL, 0, 0, 'e', GDK_CONTROL_MASK | GDK_SHIFT_MASK }, + NULL, 0, 0, 'f', GDK_CONTROL_MASK | GDK_SHIFT_MASK }, { GNOME_APP_UI_ITEM, N_("Evolution _Bar Shortcut"), NULL, command_new_shortcut, NULL, - NULL, 0, 0, 'e', GDK_CONTROL_MASK | GDK_SHIFT_MASK }, - + NULL, 0, 0, 's', GDK_CONTROL_MASK | GDK_SHIFT_MASK }, + GNOMEUIINFO_SEPARATOR, { GNOME_APP_UI_ITEM, N_("_Mail message (FIXME)"), |