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
This commit is contained in:
Not Zed
2003-04-24 01:56:46 +00:00
committed by Michael Zucci
parent 2d09981098
commit 13220ad77b
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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);