From 225120f19f7e03a09f1ff899e747e68ccc41a93e Mon Sep 17 00:00:00 2001 From: Jason Leach Date: Wed, 30 May 2001 19:39:47 +0000 Subject: Removed an unecessary sleep(2) call, so evolution will start up 2 seconds 2001-05-30 Jason Leach * e-shell.c (e_shell_construct): Removed an unecessary sleep(2) call, so evolution will start up 2 seconds faster now. 2001-05-30 Jason Leach * e-shell-view-menu.c: Connect the AddFolderToShortcutBar verb to their implementation functions. * e-shell-view.c (e_shell_view_get_current_shortcuts_group_num): New function, use it to find out which shourtcut group is currently open on the shortcut bar. * e-shell-folder-commands.c (e_shell_command_add_to_shortcut_bar): Implement this using new function described above. svn path=/trunk/; revision=10052 --- shell/e-shell-view-menu.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (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 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 }; -- cgit v1.2.3