aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r--shell/e-shell-view-menu.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c
index de0dfbca1a..12d2b3ab02 100644
--- a/shell/e-shell-view-menu.c
+++ b/shell/e-shell-view-menu.c
@@ -371,6 +371,17 @@ command_copy_folder (BonoboUIComponent *uih,
e_shell_command_copy_folder (e_shell_view_get_shell (shell_view), shell_view);
}
+static void
+command_add_folder_to_shortcut_bar (BonoboUIComponent *uih,
+ void *data,
+ const char *path)
+{
+ EShellView *shell_view;
+
+ shell_view = E_SHELL_VIEW (data);
+ e_shell_command_add_to_shortcut_bar (e_shell_view_get_shell (shell_view), shell_view);
+}
+
/* Going to a folder. */
@@ -545,6 +556,8 @@ BonoboUIVerb folder_verbs [] = {
BONOBO_UI_VERB ("MoveFolder", command_move_folder),
BONOBO_UI_VERB ("CopyFolder", command_copy_folder),
+ BONOBO_UI_VERB ("AddFolderToShortcutBar", command_add_folder_to_shortcut_bar),
+
BONOBO_UI_VERB_END
};