From 63f6e70ecc65e1b2bb174c5376bd4f98ac474d5e Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 8 Jun 2001 18:51:04 +0000 Subject: Allow a NULL @shell_view arg in `e_shell_command_add_to_shortcut_bar()'. svn path=/trunk/; revision=10160 --- shell/e-shell-folder-commands.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shell/e-shell-folder-commands.c') diff --git a/shell/e-shell-folder-commands.c b/shell/e-shell-folder-commands.c index dee3e88674..6b0a1b0fe8 100644 --- a/shell/e-shell-folder-commands.c +++ b/shell/e-shell-folder-commands.c @@ -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); -- cgit