aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view-menu.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-05-19 23:29:19 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-05-19 23:29:19 +0800
commit3e519c4e1469b93c8fc6684b6aae53779d4ff270 (patch)
tree2a68b052adcd371aa3c2308d0ce2282546dfb64b /shell/e-shell-view-menu.c
parent0b11ddccb9aa109b28f69fefb790453b558a096c (diff)
downloadgsoc2013-evolution-3e519c4e1469b93c8fc6684b6aae53779d4ff270.tar
gsoc2013-evolution-3e519c4e1469b93c8fc6684b6aae53779d4ff270.tar.gz
gsoc2013-evolution-3e519c4e1469b93c8fc6684b6aae53779d4ff270.tar.bz2
gsoc2013-evolution-3e519c4e1469b93c8fc6684b6aae53779d4ff270.tar.lz
gsoc2013-evolution-3e519c4e1469b93c8fc6684b6aae53779d4ff270.tar.xz
gsoc2013-evolution-3e519c4e1469b93c8fc6684b6aae53779d4ff270.tar.zst
gsoc2013-evolution-3e519c4e1469b93c8fc6684b6aae53779d4ff270.zip
Renamed the "NewWindow" verb into "OpenFolderInNewWindow". Got the
`File -> Folder -> Open in New Window' menu item to work. svn path=/trunk/; revision=9893
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r--shell/e-shell-view-menu.c16
1 files changed, 12 insertions, 4 deletions
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);