diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2008-09-09 10:53:40 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-09-09 10:53:40 +0800 |
commit | 935897c9a256e0d260adc1dd0dc56b1a5c760cd9 (patch) | |
tree | 5c9aab3145e9c8e60e8a2b18d6d7ef93e8bb1d8f /shell/e-shell-window.c | |
parent | 5350eebb5ef8c07e69110616ce1662e0e92bea16 (diff) | |
download | gsoc2013-evolution-935897c9a256e0d260adc1dd0dc56b1a5c760cd9.tar.gz gsoc2013-evolution-935897c9a256e0d260adc1dd0dc56b1a5c760cd9.tar.zst gsoc2013-evolution-935897c9a256e0d260adc1dd0dc56b1a5c760cd9.zip |
Fix some bugs in the way the shell widgets get initialized.
svn path=/branches/kill-bonobo/; revision=36279
Diffstat (limited to 'shell/e-shell-window.c')
-rw-r--r-- | shell/e-shell-window.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |