aboutsummaryrefslogtreecommitdiffstats
path: root/shell
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
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')
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-storage-set-view.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index a7b25b473a..8176a45f0a 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,10 @@
2001-10-25 Ettore Perazzoli <ettore@ximian.com>
+ * e-storage-set-view.c (etree_icon_at): Don't display an icon for
+ storages that have subfolders.
+
+2001-10-25 Ettore Perazzoli <ettore@ximian.com>
+
* e-shell-importer.c: #include "e-util/e-gtk-utils.h".
* e-shell-folder-creation-dialog.c
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);