diff options
-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. */ |