aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog9
-rw-r--r--shell/e-storage-set-view.c4
2 files changed, 11 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index c3fdfbdffa..8866699c3b 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,9 +1,16 @@
2000-10-02 Chris Toshok <toshok@helixcode.com>
+ * e-storage-set-view.c (new_folder_cb): set the new node's compare function.
+ (insert_folders): same.
+
+ (new_storage_cb): remove uunecessary cast.
+
+2000-10-02 Chris Toshok <toshok@helixcode.com>
+
* e-storage-set-view.c (new_storage_cb): track e-tree sort api change.
(treepath_compare): same.
(new_folder_cb): same.
-
+
2000-10-02 Chris Toshok <toshok@helixcode.com>
* e-storage-set-view.c (e_storage_set_view_construct): pass NULL
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index f4223b4d67..0be7c10d6d 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -564,7 +564,7 @@ new_storage_cb (EStorageSet *storage_set,
/* FIXME: We want a more specialized sort, e.g. the local folders should always be
on top. */
- e_tree_model_node_set_compare_function (priv->etree_model, priv->root_node, (GCompareFunc)treepath_compare);
+ e_tree_model_node_set_compare_function (priv->etree_model, priv->root_node, treepath_compare);
}
static void
@@ -626,6 +626,7 @@ new_folder_cb (EStorageSet *storage_set,
copy_of_path = g_strdup (path);
new_node = e_tree_model_node_insert_id (etree, parent_node, -1, copy_of_path, copy_of_path);
+ e_tree_model_node_set_compare_function (priv->etree_model, new_node, treepath_compare);
if (! add_node_to_hash (storage_set_view, path, new_node)) {
e_tree_model_node_remove (etree, new_node);
@@ -778,6 +779,7 @@ insert_folders (EStorageSetView *storage_set_view,
full_path = g_strconcat ("/", storage_name, folder_path, NULL);
node = e_tree_model_node_insert_id (etree, parent, -1, (void *) full_path, full_path);
add_node_to_hash (storage_set_view, full_path, node);
+ e_tree_model_node_set_compare_function (priv->etree_model, node, treepath_compare);
insert_folders (storage_set_view, node, storage, folder_path);