aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-04-02 07:03:27 +0800
committerChris Lahey <clahey@src.gnome.org>2001-04-02 07:03:27 +0800
commit428f1353cef2a92d2a044b575dfb5aee7ee2e1d0 (patch)
tree227177fbaa15223906c36e25fc138138027f748f /widgets/table
parentb27a35eae5e2f63a15ec9c151b70b31b7be6c8fe (diff)
downloadgsoc2013-evolution-428f1353cef2a92d2a044b575dfb5aee7ee2e1d0.tar.gz
gsoc2013-evolution-428f1353cef2a92d2a044b575dfb5aee7ee2e1d0.tar.zst
gsoc2013-evolution-428f1353cef2a92d2a044b575dfb5aee7ee2e1d0.zip
Made this traverse the source model instead of the sorted model since the
2001-04-01 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c (etsm_foreach_all_recurse, etsm_foreach_recurse, e_tree_selection_model_foreach): Made this traverse the source model instead of the sorted model since the selection model is in the order of the source model. svn path=/trunk/; revision=9089
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-tree-selection-model.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/widgets/table/e-tree-selection-model.c b/widgets/table/e-tree-selection-model.c
index f35a9563f0..92e0144f63 100644
--- a/widgets/table/e-tree-selection-model.c
+++ b/widgets/table/e-tree-selection-model.c
@@ -890,14 +890,12 @@ etsm_foreach_all_recurse (ETreeSelectionModel *etsm,
ETreeForeachFunc callback,
gpointer closure)
{
- ETreePath model_path;
ETreePath child;
- model_path = e_tree_sorted_view_to_model_path(etsm->priv->ets, path);
- callback(model_path, closure);
+ callback(path, closure);
- child = e_tree_model_node_get_first_child(E_TREE_MODEL(etsm->priv->ets), path);
- for ( ; child; child = e_tree_model_node_get_next(E_TREE_MODEL(etsm->priv->ets), child))
+ child = e_tree_model_node_get_first_child(E_TREE_MODEL(etsm->priv->model), path);
+ for ( ; child; child = e_tree_model_node_get_next(E_TREE_MODEL(etsm->priv->model), child))
if (child)
etsm_foreach_all_recurse (etsm, child, callback, closure);
}
@@ -918,14 +916,13 @@ etsm_foreach_recurse (ETreeSelectionModel *etsm,
return;
if (selection_node->selected) {
- ETreePath model_path = e_tree_sorted_view_to_model_path(etsm->priv->ets, path);
- callback(model_path, closure);
+ callback(path, closure);
}
if (selection_node->children) {
- ETreePath child = e_tree_model_node_get_first_child(E_TREE_MODEL(etsm->priv->ets), path);
+ ETreePath child = e_tree_model_node_get_first_child(E_TREE_MODEL(etsm->priv->model), path);
int i;
- for (i = 0; i < selection_node->num_children; i++, child = e_tree_model_node_get_next(E_TREE_MODEL(etsm->priv->ets), child))
+ for (i = 0; i < selection_node->num_children; i++, child = e_tree_model_node_get_next(E_TREE_MODEL(etsm->priv->model), child))
if (selection_node->children[i])
etsm_foreach_recurse (etsm, selection_node->children[i], child, callback, closure);
}
@@ -937,7 +934,9 @@ e_tree_selection_model_foreach (ETreeSelectionModel *etsm,
gpointer closure)
{
if (etsm->priv->root) {
- etsm_foreach_recurse(etsm, etsm->priv->root, e_tree_model_get_root(E_TREE_MODEL(etsm->priv->ets)), callback, closure);
+ ETreePath model_root;
+ model_root = e_tree_model_get_root(etsm->priv->model);
+ etsm_foreach_recurse(etsm, etsm->priv->root, model_root, callback, closure);
}
}