Allow a NULL @shell_view arg in

`e_shell_command_add_to_shortcut_bar()'.

svn path=/trunk/; revision=10160
This commit is contained in:
Ettore Perazzoli
2001-06-08 18:51:04 +00:00
parent 04aed95972
commit 63f6e70ecc
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-06-08 Ettore Perazzoli <ettore@ximian.com>
* e-shell-folder-commands.c (e_shell_command_add_to_shortcut_bar):
Allow a NULL @shell_view arg.
2001-06-08 Jason Leach <jleach@ximian.com>
* e-shell.c (e_shell_construct): Fix splash setup to keep it from

View File

@ -333,8 +333,7 @@ e_shell_command_add_to_shortcut_bar (EShell *shell,
g_return_if_fail (shell != NULL);
g_return_if_fail (E_IS_SHELL (shell));
g_return_if_fail (shell_view != NULL);
g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
g_return_if_fail (shell_view != NULL && ! E_IS_SHELL_VIEW (shell_view));
shortcuts = e_shell_get_shortcuts (shell);
group_num = e_shell_view_get_current_shortcuts_group_num (shell_view);