From 935897c9a256e0d260adc1dd0dc56b1a5c760cd9 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 9 Sep 2008 02:53:40 +0000 Subject: Fix some bugs in the way the shell widgets get initialized. svn path=/branches/kill-bonobo/; revision=36279 --- shell/e-shell-window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'shell/e-shell-window.c') diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index 218f4f599d..ce144da5fa 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -472,12 +472,13 @@ e_shell_window_set_current_view (EShellWindow *shell_window, g_return_if_fail (E_IS_SHELL_WINDOW (shell_window)); view_name = name_or_alias; + list = e_shell_registry_list_modules (); if (view_name != NULL) view_name = e_shell_registry_get_canonical_name (view_name); - if (view_name == NULL) - view_name = shell_window->priv->default_view; + if (view_name == NULL && list != NULL) + view_name = G_TYPE_MODULE (list->data)->name; g_return_if_fail (view_name != NULL); -- cgit