aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-09-11 19:12:16 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-09-11 19:12:16 +0800
commit0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f (patch)
tree735c7930b24b243bf2cd72c6984c4d274c1ffb2e /shell/e-storage.c
parent32496628e7268ad257e87a84d97add1239473dfa (diff)
downloadgsoc2013-evolution-0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f.tar
gsoc2013-evolution-0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f.tar.gz
gsoc2013-evolution-0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f.tar.bz2
gsoc2013-evolution-0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f.tar.lz
gsoc2013-evolution-0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f.tar.xz
gsoc2013-evolution-0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f.tar.zst
gsoc2013-evolution-0f618ac4cfae7d62fca7c0468458f55f3e4a3e9f.zip
Fully support setting the display name in the tree. It seems to work.
svn path=/trunk/; revision=5320
Diffstat (limited to 'shell/e-storage.c')
-rw-r--r--shell/e-storage.c33
1 files changed, 7 insertions, 26 deletions
diff --git a/shell/e-storage.c b/shell/e-storage.c
index ee09b5576c..df69f33fd9 100644
--- a/shell/e-storage.c
+++ b/shell/e-storage.c
@@ -97,33 +97,14 @@ destroy (GtkObject *object)
/* EStorage methods. */
static GList *
-impl_list_folders (EStorage *storage,
- const char *path)
+impl_get_subfolder_paths (EStorage *storage,
+ const char *path)
{
EStoragePrivate *priv;
- GList *path_list;
- GList *list;
- GList *p;
priv = storage->priv;
- path_list = e_folder_tree_get_subfolders (priv->folder_tree, path);
-
- list = NULL;
- for (p = path_list; p != NULL; p = p->next) {
- EFolder *e_folder;
- const char *sub_path;
-
- sub_path = (const char *) p->data;
- e_folder = e_folder_tree_get_folder (priv->folder_tree, sub_path);
-
- gtk_object_ref (GTK_OBJECT (e_folder));
- list = g_list_prepend (list, e_folder);
- }
-
- e_free_string_list (path_list);
-
- return list;
+ return e_folder_tree_get_subfolders (priv->folder_tree, path);
}
static EFolder *
@@ -179,7 +160,7 @@ class_init (EStorageClass *class)
object_class->destroy = destroy;
- class->list_folders = impl_list_folders;
+ class->get_subfolder_paths = impl_get_subfolder_paths;
class->get_folder = impl_get_folder;
class->get_name = impl_get_name;
class->async_create_folder = impl_async_create_folder;
@@ -260,15 +241,15 @@ e_storage_path_is_relative (const char *path)
GList *
-e_storage_list_folders (EStorage *storage,
- const char *path)
+e_storage_get_subfolder_paths (EStorage *storage,
+ const char *path)
{
g_return_val_if_fail (storage != NULL, NULL);
g_return_val_if_fail (E_IS_STORAGE (storage), NULL);
g_return_val_if_fail (path != NULL, NULL);
g_return_val_if_fail (g_path_is_absolute (path), NULL);
- return (* ES_CLASS (storage)->list_folders) (storage, path);
+ return (* ES_CLASS (storage)->get_subfolder_paths) (storage, path);
}
EFolder *