diff options
author | Jason Leach <jleach@ximian.com> | 2001-05-31 03:39:47 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-05-31 03:39:47 +0800 |
commit | 225120f19f7e03a09f1ff899e747e68ccc41a93e (patch) | |
tree | 2f0697639ec2541fabcacab4543d703d6e5e7384 /shell/e-shell-folder-commands.c | |
parent | 1c8d79010681884cfddd5574e40cb2bdd0772c61 (diff) | |
download | gsoc2013-evolution-225120f19f7e03a09f1ff899e747e68ccc41a93e.tar.gz gsoc2013-evolution-225120f19f7e03a09f1ff899e747e68ccc41a93e.tar.zst gsoc2013-evolution-225120f19f7e03a09f1ff899e747e68ccc41a93e.zip |
Removed an unecessary sleep(2) call, so evolution will start up 2 seconds
2001-05-30 Jason Leach <jleach@ximian.com>
* 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 <jleach@ximian.com>
* 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
Diffstat (limited to 'shell/e-shell-folder-commands.c')
-rw-r--r-- | shell/e-shell-folder-commands.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/shell/e-shell-folder-commands.c b/shell/e-shell-folder-commands.c index 7621294609..f0a39f0e4e 100644 --- a/shell/e-shell-folder-commands.c +++ b/shell/e-shell-folder-commands.c @@ -314,11 +314,20 @@ void e_shell_command_add_to_shortcut_bar (EShell *shell, EShellView *shell_view) { + EShortcuts *shortcuts; + int group_num; + char *uri; + g_return_if_fail (shell != NULL); g_return_if_fail (E_IS_SHELL (shell)); - g_return_if_fail (shell_view != NULL && E_IS_SHELL_VIEW (shell_view)); + g_return_if_fail (shell_view != NULL); + g_return_if_fail (E_IS_SHELL_VIEW (shell_view)); - g_warning ("To be implemented"); + shortcuts = e_shell_get_shortcuts (shell); + group_num = e_shell_view_get_current_shortcuts_group_num (shell_view); + uri = e_shell_view_get_current_uri (shell_view); + + e_shortcuts_add_shortcut (shortcuts, group_num, -1, uri); } |