diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-07-15 17:54:25 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-07-15 17:54:25 +0800 |
commit | 694b8bf34f5720fdb4dfb8e00cd221f236fbd88c (patch) | |
tree | 75c797711c2d79da5743e1c07ca68303614a3233 /shell/e-storage-set-view.c | |
parent | 13dad0c8c9f26039ac0048865bcbea11c035bd17 (diff) | |
download | gsoc2013-evolution-694b8bf34f5720fdb4dfb8e00cd221f236fbd88c.tar.gz gsoc2013-evolution-694b8bf34f5720fdb4dfb8e00cd221f236fbd88c.tar.zst gsoc2013-evolution-694b8bf34f5720fdb4dfb8e00cd221f236fbd88c.zip |
Display an icon for nodes at depth greater than 2 in the tree view as
well.
svn path=/trunk/; revision=11113
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r-- | shell/e-storage-set-view.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index c0f4aee7f7..ee67674b9b 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -1346,8 +1346,8 @@ etree_icon_at (ETreeModel *etree, our My Evolution root node. */ depth = e_tree_model_node_depth (etree, tree_path); - switch (depth) { - case 0: /* My Evolution */ + if (depth == 0) { + /* My Evolution */ storage_set_view = E_STORAGE_SET_VIEW (model_data); storage_set = storage_set_view->priv->storage_set; @@ -1355,13 +1355,8 @@ etree_icon_at (ETreeModel *etree, icon_pixbuf = e_folder_type_registry_get_icon_for_type (folder_type_registry, "My Evolution", TRUE); - return icon_pixbuf; - - case 1: - return NULL; - - case 2: + } else if (depth >= 2) { storage_set_view = E_STORAGE_SET_VIEW (model_data); storage_set = storage_set_view->priv->storage_set; @@ -1372,10 +1367,9 @@ etree_icon_at (ETreeModel *etree, return NULL; return get_pixbuf_for_folder (storage_set_view, folder); - - default: - return NULL; } + + return NULL; } /* This function returns the number of columns in our ETreeModel. */ |