fix a bug in the storage icon code
svn path=/trunk/; revision=15974
This commit is contained in:
@ -55,8 +55,7 @@
|
||||
* e-storage-set-view.c (set_e_shortcut_selection): Remove
|
||||
special-case for storages.
|
||||
(etree_icon_at): Remove special case for figuring out storage
|
||||
icons (but leave the code that makes the icon disappear once the
|
||||
storage is opened).
|
||||
icons (but leave the code for storages without icons).
|
||||
(etree_value_at): Remove special case for storage names. (But
|
||||
still make storages always bold.) Remove unused special-case code
|
||||
for Summary.
|
||||
|
@ -1363,11 +1363,18 @@ etree_icon_at (ETreeModel *etree,
|
||||
|
||||
path = (char*) e_tree_memory_node_get_data (E_TREE_MEMORY(etree), tree_path);
|
||||
|
||||
/* No icon for a storage with children */
|
||||
folder = e_storage_set_get_folder (storage_set, path);
|
||||
if (folder == NULL)
|
||||
return NULL;
|
||||
|
||||
/* No icon for a storage with children (or with no real root folder) */
|
||||
if (path_is_storage (etree, tree_path)) {
|
||||
EStorage *storage;
|
||||
GList *subfolder_paths;
|
||||
|
||||
if (! strcmp (e_folder_get_type_string (folder), "noselect"))
|
||||
return NULL;
|
||||
|
||||
storage = e_storage_set_get_storage (storage_set, path + 1);
|
||||
subfolder_paths = e_storage_get_subfolder_paths (storage, "/");
|
||||
if (subfolder_paths != NULL) {
|
||||
@ -1376,10 +1383,6 @@ etree_icon_at (ETreeModel *etree,
|
||||
}
|
||||
}
|
||||
|
||||
folder = e_storage_set_get_folder (storage_set, path);
|
||||
if (folder == NULL)
|
||||
return NULL;
|
||||
|
||||
return get_pixbuf_for_folder (storage_set_view, folder);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user