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 | |
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')
-rw-r--r-- | shell/ChangeLog | 5 | ||||
-rw-r--r-- | shell/e-storage-set-view.c | 16 |
2 files changed, 10 insertions, 11 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index bc87bec543..94651d5e9e 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,5 +1,10 @@ 2001-07-15 Ettore Perazzoli <ettore@ximian.com> + * e-storage-set-view.c (etree_icon_at): Return an icon for depths + greater than 2 as well. + +2001-07-15 Ettore Perazzoli <ettore@ximian.com> + * e-shell-view-menu.c (e_shell_view_menu_setup): Connect the "line_status_changed" signal with `gtk_signal_connect_while_alive()' for the shell views, so we 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. */ |