From 3e519c4e1469b93c8fc6684b6aae53779d4ff270 Mon Sep 17 00:00:00 2001
From: Ettore Perazzoli <ettore@src.gnome.org>
Date: Sat, 19 May 2001 15:29:19 +0000
Subject: Renamed the "NewWindow" verb into "OpenFolderInNewWindow".  Got the
 `File -> Folder -> Open in New Window' menu item to work.

svn path=/trunk/; revision=9893
---
 shell/e-shell-view-menu.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

(limited to 'shell/e-shell-view-menu.c')

diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c
index 3e8d2b9bd7..3f07b171bb 100644
--- a/shell/e-shell-view-menu.c
+++ b/shell/e-shell-view-menu.c
@@ -23,6 +23,8 @@
  *   Ettore Perazzoli
  */
 
+/* FIXME: This file is a bit of a mess.  */
+
 #include <config.h>
 
 #include <glib.h>
@@ -329,9 +331,9 @@ command_new_folder (BonoboUIComponent *uih,
 }
 
 static void
-command_new_view (BonoboUIComponent *uih,
-		  gpointer          data,
-		  const char *path)
+command_open_folder_in_new_window (BonoboUIComponent *uih,
+				   gpointer          data,
+				   const char *path)
 {
 	EShellView *shell_view;
 	EShell *shell;
@@ -488,7 +490,6 @@ DEFINE_UNIMPLEMENTED (command_new_contact)
 DEFINE_UNIMPLEMENTED (command_new_task_request)
 
 BonoboUIVerb new_verbs [] = {
-	BONOBO_UI_VERB ("NewView", command_new_view),
 	BONOBO_UI_VERB ("NewFolder", command_new_folder),
 	BONOBO_UI_VERB ("NewShortcut", command_new_shortcut),
 	BONOBO_UI_VERB ("NewMailMessage", command_new_mail_message),
@@ -513,6 +514,12 @@ BonoboUIVerb file_verbs [] = {
 	BONOBO_UI_VERB_END
 };
 
+BonoboUIVerb folder_verbs [] = {
+	BONOBO_UI_VERB ("OpenFolderInNewWindow", command_open_folder_in_new_window),
+
+	BONOBO_UI_VERB_END
+};
+
 BonoboUIVerb help_verbs [] = {
 	BONOBO_UI_VERB_DATA ("HelpIndex", command_help, "evolution-guide/index.html"),
 	BONOBO_UI_VERB_DATA ("HelpGetStarted", command_help, "evolution-guide/usage-mainwindow.html"),
@@ -631,6 +638,7 @@ e_shell_view_menu_setup (EShellView *shell_view)
 	shell = e_shell_view_get_shell (shell_view);
 
 	bonobo_ui_component_add_verb_list_with_data (uic, file_verbs, shell_view);
+	bonobo_ui_component_add_verb_list_with_data (uic, folder_verbs, shell_view);
 	bonobo_ui_component_add_verb_list_with_data (uic, new_verbs, shell_view);
 
 	bonobo_ui_component_add_verb_list (uic, help_verbs);
-- 
cgit v1.2.3