diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-14 09:32:19 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-14 09:32:19 +0800 |
commit | 7198aa064a8fc90389087c6704149e19bee51a43 (patch) | |
tree | 585f055ab291bf5e21626ceb32ed740a44e65d0b /shell/e-shell.c | |
parent | 8dea04ca5e0bef9db235e7f2e44a23b61be24e0f (diff) | |
download | gsoc2013-evolution-7198aa064a8fc90389087c6704149e19bee51a43.tar gsoc2013-evolution-7198aa064a8fc90389087c6704149e19bee51a43.tar.gz gsoc2013-evolution-7198aa064a8fc90389087c6704149e19bee51a43.tar.bz2 gsoc2013-evolution-7198aa064a8fc90389087c6704149e19bee51a43.tar.lz gsoc2013-evolution-7198aa064a8fc90389087c6704149e19bee51a43.tar.xz gsoc2013-evolution-7198aa064a8fc90389087c6704149e19bee51a43.tar.zst gsoc2013-evolution-7198aa064a8fc90389087c6704149e19bee51a43.zip |
Initial implementation of the tree view for the folders.
svn path=/trunk/; revision=3020
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r-- | shell/e-shell.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c index fd61108a5f..a0851af27a 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -77,16 +77,16 @@ setup_storages (EShell *shell) local_storage_path = g_concat_dir_and_file (priv->local_directory, LOCAL_STORAGE_DIRECTORY); local_storage = e_local_storage_open (local_storage_path); - if (local_storage == NULL) { g_warning (_("Cannot set up local storage -- %s"), local_storage_path); g_free (local_storage_path); return FALSE; } - g_free (local_storage_path); - priv->storage_set = e_storage_set_new (); + g_assert (shell->priv->folder_type_repository); + + priv->storage_set = e_storage_set_new (shell->priv->folder_type_repository); e_storage_set_add_storage (priv->storage_set, local_storage); return TRUE; @@ -207,11 +207,12 @@ e_shell_construct (EShell *shell, priv->local_directory = g_strdup (local_directory); + priv->folder_type_repository = e_folder_type_repository_new (); + if (! setup_storages (shell)) return; - priv->folder_type_repository = e_folder_type_repository_new (); - priv->shortcuts = e_shortcuts_new (priv->storage_set, priv->folder_type_repository); + priv->shortcuts = e_shortcuts_new (priv->storage_set, priv->folder_type_repository); shortcut_path = g_concat_dir_and_file (local_directory, "shortcuts.xml"); |