aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-04-01 04:10:30 +0800
committerChris Lahey <clahey@src.gnome.org>2001-04-01 04:10:30 +0800
commit48e35cdf4cb43d172a61ffa86e24e0c25b156680 (patch)
tree44cf2c4ae75fc0db4bb5337d34f897d13559777e /widgets
parent153eecb0b2829a3379eecca2c0db25a9549f98a5 (diff)
downloadgsoc2013-evolution-48e35cdf4cb43d172a61ffa86e24e0c25b156680.tar
gsoc2013-evolution-48e35cdf4cb43d172a61ffa86e24e0c25b156680.tar.gz
gsoc2013-evolution-48e35cdf4cb43d172a61ffa86e24e0c25b156680.tar.bz2
gsoc2013-evolution-48e35cdf4cb43d172a61ffa86e24e0c25b156680.tar.lz
gsoc2013-evolution-48e35cdf4cb43d172a61ffa86e24e0c25b156680.tar.xz
gsoc2013-evolution-48e35cdf4cb43d172a61ffa86e24e0c25b156680.tar.zst
gsoc2013-evolution-48e35cdf4cb43d172a61ffa86e24e0c25b156680.zip
Set orig_position properly on inserted nodes.
2001-03-31 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c (ets_proxy_node_inserted): Set orig_position properly on inserted nodes. svn path=/trunk/; revision=9074
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-tree-sorted.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/table/e-tree-sorted.c b/widgets/table/e-tree-sorted.c
index b041e73952..38f92bd3e4 100644
--- a/widgets/table/e-tree-sorted.c
+++ b/widgets/table/e-tree-sorted.c
@@ -923,13 +923,14 @@ ets_proxy_node_inserted (ETreeModel *etm, ETreePath parent, ETreePath child, ETr
if (position != parent_path->num_children) {
for (i = 0; i < parent_path->num_children; i++) {
- if (parent_path->children[i]->position >= position)
- parent_path->children[i]->position++;
+ if (parent_path->children[i]->orig_position >= position)
+ parent_path->children[i]->orig_position++;
}
}
i = parent_path->num_children;
path = new_path(parent_path, child);
+ path->orig_position = position;
if (ets->priv->sort_idle_id == 0) {
ets->priv->insert_count++;
if (ets->priv->insert_count > ETS_INSERT_MAX) {