aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-set-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-10-26 05:55:39 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-10-26 05:55:39 +0800
commit54433d0888d88f439b5c720677666f635e871ba2 (patch)
treeaa107727a186d6894d48776fdda572ce445d90b9 /shell/e-storage-set-view.c
parentcab9406217ca92439a86e768be464b9ba72e4ed1 (diff)
downloadgsoc2013-evolution-54433d0888d88f439b5c720677666f635e871ba2.tar.gz
gsoc2013-evolution-54433d0888d88f439b5c720677666f635e871ba2.tar.zst
gsoc2013-evolution-54433d0888d88f439b5c720677666f635e871ba2.zip
Don't display an icon for storages that have subfolders.
* e-storage-set-view.c (etree_icon_at): Don't display an icon for storages that have subfolders. svn path=/trunk/; revision=14102
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r--shell/e-storage-set-view.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index 9b7365e796..5c57608db9 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -1356,8 +1356,14 @@ etree_icon_at (ETreeModel *etree,
if (depth == 1) {
EStorage *storage;
const char *storage_type;
+ GList *subfolder_paths;
storage = e_storage_set_get_storage (storage_set, path + 1);
+ subfolder_paths = e_storage_get_subfolder_paths (storage, "/");
+ if (subfolder_paths != NULL) {
+ e_free_string_list (subfolder_paths);
+ return NULL;
+ }
folder_type_registry = e_storage_set_get_folder_type_registry (storage_set);
storage_type = e_storage_get_toplevel_node_type (storage);