From 98e3582f187f03dd8b65afc761f150a1aa4b6623 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 17 Nov 2003 20:02:57 +0000 Subject: (command_open_new_window): New, implement "OpenNewWindow" verb. svn path=/trunk/; revision=23399 --- shell/ChangeLog | 5 +++++ shell/e-shell-window-commands.c | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 500d363e3f..a7e16e552a 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2003-11-17 Ettore Perazzoli + + * e-shell-window-commands.c (command_open_new_window): New, + implement "OpenNewWindow" verb. + 2003-11-17 Ettore Perazzoli * e-setup.c: Do not #include "e-local-folder.h". diff --git a/shell/e-shell-window-commands.c b/shell/e-shell-window-commands.c index 0bc9b7f12f..d52788e9f6 100644 --- a/shell/e-shell-window-commands.c +++ b/shell/e-shell-window-commands.c @@ -197,6 +197,19 @@ command_work_online (BonoboUIComponent *uih, e_shell_go_online (e_shell_window_peek_shell (window), window); } +static void +command_open_new_window (BonoboUIComponent *uih, + EShellWindow *window, + const char *path) +{ + e_shell_create_window (e_shell_window_peek_shell (window), + e_shell_window_peek_current_component_id (window), + window); +} + + +/* Actions menu. */ + static void command_send_receive (BonoboUIComponent *uih, EShellWindow *window, @@ -236,6 +249,12 @@ static BonoboUIVerb file_verbs [] = { BONOBO_UI_VERB_END }; +static BonoboUIVerb new_verbs [] = { + BONOBO_UI_VERB ("OpenNewWindow", (BonoboUIVerbFn) command_open_new_window), + + BONOBO_UI_VERB_END +}; + static BonoboUIVerb actions_verbs[] = { BONOBO_UI_VERB ("SendReceive", (BonoboUIVerbFn) command_send_receive), @@ -356,6 +375,7 @@ e_shell_window_commands_setup (EShellWindow *shell_window) shell = e_shell_window_peek_shell (shell_window); bonobo_ui_component_add_verb_list_with_data (uic, file_verbs, shell_window); + bonobo_ui_component_add_verb_list_with_data (uic, new_verbs, shell_window); bonobo_ui_component_add_verb_list_with_data (uic, actions_verbs, shell_window); bonobo_ui_component_add_verb_list_with_data (uic, tools_verbs, shell_window); bonobo_ui_component_add_verb_list_with_data (uic, help_verbs, shell_window); -- cgit