diff options
author | Jason Leach <jleach@ximian.com> | 2001-06-07 03:38:28 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-06-07 03:38:28 +0800 |
commit | c77b7e30202573c1c4ab54086388202d93181b45 (patch) | |
tree | ae8398641bd6ab8c397b721226d20c77aa40e0ef /shell/e-storage-set-view.c | |
parent | 0a7445949918ec1cc80cd303217df742e10fb6f5 (diff) | |
download | gsoc2013-evolution-c77b7e30202573c1c4ab54086388202d93181b45.tar.gz gsoc2013-evolution-c77b7e30202573c1c4ab54086388202d93181b45.tar.zst gsoc2013-evolution-c77b7e30202573c1c4ab54086388202d93181b45.zip |
(Fix bug #418: Save state of folder tree view)
2001-06-06 Jason Leach <jleach@ximian.com>
(Fix bug #418: Save state of folder tree view)
* e-shell-view.c (e_shell_view_save_settings): Changed the char *
@prefix argument to an int @view_num.
(e_shell_view_load_settings): Ditto.
(get_local_prefix_for_view): New function that gets us a prefix
from a view_num.
* e-shell-view.c (e_shell_view_save_settings): Save the
expanded/collapsed information for each storage-set-view here.
(e_shell_view_load_settings): Load it here.
* e-storage-set-view.c (e_storage_set_view_construct): Make it so
new storage set views have their storages expanded by default, but
will respsect the expanded state information that we load into it.
(insert_storages): Minor change here too.
(new_folder_cb): Ditto.
svn path=/trunk/; revision=10135
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r-- | shell/e-storage-set-view.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 6c08a0bda5..3129cdd976 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -1499,9 +1499,7 @@ new_storage_cb (EStorageSet *storage_set, node = e_tree_memory_node_insert (E_TREE_MEMORY(priv->etree_model), priv->root_node, -1, path); - e_tree_memory_sort_node(E_TREE_MEMORY(priv->etree_model), priv->root_node, storage_sort_callback, storage_set_view); - - e_tree_node_set_expanded (E_TREE(storage_set_view), node, TRUE); + e_tree_memory_sort_node (E_TREE_MEMORY(priv->etree_model), priv->root_node, storage_sort_callback, storage_set_view); if (! add_node_to_hash (storage_set_view, path, node)) { e_tree_memory_node_remove (E_TREE_MEMORY(priv->etree_model), node); @@ -1822,8 +1820,7 @@ insert_storages (EStorageSetView *storage_set_view) parent = e_tree_memory_node_insert (E_TREE_MEMORY(priv->etree_model), priv->root_node, -1, path); - e_tree_memory_sort_node(E_TREE_MEMORY(priv->etree_model), priv->root_node, storage_sort_callback, storage_set_view); - e_tree_node_set_expanded (E_TREE(storage_set_view), parent, TRUE); + e_tree_memory_sort_node (E_TREE_MEMORY(priv->etree_model), priv->root_node, storage_sort_callback, storage_set_view); g_hash_table_insert (priv->path_to_etree_node, path, parent); @@ -1874,6 +1871,7 @@ e_storage_set_view_construct (EStorageSetView *storage_set_view, storage_set_view); e_tree_memory_set_node_destroy_func (E_TREE_MEMORY (priv->etree_model), (GFunc) g_free, NULL); + e_tree_memory_set_expanded_default (E_TREE_MEMORY (priv->etree_model), TRUE); priv->root_node = e_tree_memory_node_insert (E_TREE_MEMORY(priv->etree_model), NULL, -1, g_strdup ("/Root Node")); |