aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/e-local-storage.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 5591162507..a1006b768f 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,9 @@
+2003-04-23 Not Zed <NotZed@Ximian.com>
+
+ * e-local-storage.c (load_folder): cast to remove warning.
+ (construct): set a physiucal uri on the root folder, so we dont
+ get warnings when we add it later.
+
2003-04-22 Anna Marie Dirks <anna@ximian.com>
* e-shell-settings-dialog.c (init): Add appropriate padding
diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c
index cc72484175..8ce9f87189 100644
--- a/shell/e-local-storage.c
+++ b/shell/e-local-storage.c
@@ -200,7 +200,7 @@ load_folder (const char *physical_path,
return TRUE;
}
- e_storage_new_folder (local_storage, path, folder);
+ e_storage_new_folder ((EStorage *)local_storage, path, folder);
return TRUE;
}
@@ -1146,8 +1146,12 @@ construct (ELocalStorage *local_storage,
ELocalStoragePrivate *priv;
EFolder *root_folder;
int base_path_len;
+ char *uri;
root_folder = e_folder_new (_("Local Folders"), "noselect", "");
+ uri = g_strdup_printf("file://%s;noselect", base_path);
+ e_folder_set_physical_uri(root_folder, uri);
+ g_free(uri);
e_storage_construct (E_STORAGE (local_storage),
E_LOCAL_STORAGE_NAME,
root_folder);