aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-11-18 04:02:57 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-11-18 04:02:57 +0800
commit98e3582f187f03dd8b65afc761f150a1aa4b6623 (patch)
treed3bc2f979a56a728c76f46f8f0624a56388720a5
parent913aab9b183a25a4ca3477ae389f586efad8770f (diff)
downloadgsoc2013-evolution-98e3582f187f03dd8b65afc761f150a1aa4b6623.tar
gsoc2013-evolution-98e3582f187f03dd8b65afc761f150a1aa4b6623.tar.gz
gsoc2013-evolution-98e3582f187f03dd8b65afc761f150a1aa4b6623.tar.bz2
gsoc2013-evolution-98e3582f187f03dd8b65afc761f150a1aa4b6623.tar.lz
gsoc2013-evolution-98e3582f187f03dd8b65afc761f150a1aa4b6623.tar.xz
gsoc2013-evolution-98e3582f187f03dd8b65afc761f150a1aa4b6623.tar.zst
gsoc2013-evolution-98e3582f187f03dd8b65afc761f150a1aa4b6623.zip
(command_open_new_window): New,
implement "OpenNewWindow" verb. svn path=/trunk/; revision=23399
-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);