aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-shell-window-commands.c20
2 files changed, 25 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 500d363e3f..a7e16e552a 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,10 @@
2003-11-17 Ettore Perazzoli <ettore@ximian.com>
+ * e-shell-window-commands.c (command_open_new_window): New,
+ implement "OpenNewWindow" verb.
+
+2003-11-17 Ettore Perazzoli <ettore@ximian.com>
+
* e-setup.c: Do not #include "e-local-folder.h".
* Makefile.am: Don't build evolution-test-component for now since
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
@@ -198,6 +198,19 @@ command_work_online (BonoboUIComponent *uih,
}
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,
const char *path)
@@ -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);