aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-09-05 03:54:48 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-09-05 03:54:48 +0800
commit3e05c184063d7ed97a3a63f19de151fb5bb8396f (patch)
tree8666c0e06b30d6ce06e9613bd4913088e7e38fbd
parent1b7cf38b9cb6c7fddbe44330f7fc0d5089ff15b2 (diff)
downloadgsoc2013-evolution-3e05c184063d7ed97a3a63f19de151fb5bb8396f.tar
gsoc2013-evolution-3e05c184063d7ed97a3a63f19de151fb5bb8396f.tar.gz
gsoc2013-evolution-3e05c184063d7ed97a3a63f19de151fb5bb8396f.tar.bz2
gsoc2013-evolution-3e05c184063d7ed97a3a63f19de151fb5bb8396f.tar.lz
gsoc2013-evolution-3e05c184063d7ed97a3a63f19de151fb5bb8396f.tar.xz
gsoc2013-evolution-3e05c184063d7ed97a3a63f19de151fb5bb8396f.tar.zst
gsoc2013-evolution-3e05c184063d7ed97a3a63f19de151fb5bb8396f.zip
Add the root node to the hash. (e_storage_set_view_set_show_folders):
* e-storage-set-view.c (e_storage_set_view_construct): Add the root node to the hash. (e_storage_set_view_set_show_folders): Likewise. svn path=/trunk/; revision=12594
-rw-r--r--shell/ChangeLog9
-rw-r--r--shell/e-storage-set-view.c2
2 files changed, 11 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index f01a848c2c..0bd2fc98c0 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,12 @@
+2001-09-04 Ettore Perazzoli <ettore@ximian.com>
+
+ [Patch from Richard Boulton <richard@tartarus.org> to fix #8497,
+ "Warning when shutting view: RootNode not found".]
+
+ * e-storage-set-view.c (e_storage_set_view_construct): Add the
+ root node to the hash.
+ (e_storage_set_view_set_show_folders): Likewise.
+
2001-08-30 Peter Williams <peterw@ximian.com>
* e-local-storage.c (async_xfer_folder_complete): Remove the folder from
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index 82e08d2ed3..67d46a8fef 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -1959,6 +1959,7 @@ e_storage_set_view_construct (EStorageSetView *storage_set_view,
priv->root_node = e_tree_memory_node_insert (E_TREE_MEMORY(priv->etree_model), NULL, -1,
g_strdup (ROOT_NODE_NAME));
+ add_node_to_hash (storage_set_view, ROOT_NODE_NAME, priv->root_node);
extras = e_table_extras_new ();
cell = e_cell_text_new (NULL, GTK_JUSTIFY_LEFT);
@@ -2084,6 +2085,7 @@ e_storage_set_view_set_show_folders (EStorageSetView *storage_set_view,
/* now re-add the root node */
priv->root_node = e_tree_memory_node_insert (E_TREE_MEMORY(priv->etree_model), NULL, -1,
g_strdup (ROOT_NODE_NAME));
+ add_node_to_hash (storage_set_view, ROOT_NODE_NAME, priv->root_node);
/* then reinsert the storages after setting the "show_folders"
flag. insert_storages will call insert_folders if