aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-04-24 09:56:46 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-04-24 09:56:46 +0800
commit13220ad77b436beb069671e360a8fb1ecca8a7e8 (patch)
tree0744f35aebfd2b693b304ec11de827d9abb5dc34 /shell
parent2d09981098e0af0af5f94f8565751df7c1a4ed02 (diff)
downloadgsoc2013-evolution-13220ad77b436beb069671e360a8fb1ecca8a7e8.tar.gz
gsoc2013-evolution-13220ad77b436beb069671e360a8fb1ecca8a7e8.tar.zst
gsoc2013-evolution-13220ad77b436beb069671e360a8fb1ecca8a7e8.zip
cast to remove warning. (construct): set a physiucal uri on the root
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. svn path=/trunk/; revision=20951
Diffstat (limited to 'shell')
-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);