aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-22 05:12:40 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-22 05:12:40 +0800
commitb06d4d48ed6079103dbf74e53fc2be964cd7fac9 (patch)
tree9bbff1b8a1a052196d61951a82f9a04eb4fdcfda /widgets
parented696d713318d4aa10ef14c1e3bcf0bcdfd56e06 (diff)
downloadgsoc2013-evolution-b06d4d48ed6079103dbf74e53fc2be964cd7fac9.tar
gsoc2013-evolution-b06d4d48ed6079103dbf74e53fc2be964cd7fac9.tar.gz
gsoc2013-evolution-b06d4d48ed6079103dbf74e53fc2be964cd7fac9.tar.bz2
gsoc2013-evolution-b06d4d48ed6079103dbf74e53fc2be964cd7fac9.tar.lz
gsoc2013-evolution-b06d4d48ed6079103dbf74e53fc2be964cd7fac9.tar.xz
gsoc2013-evolution-b06d4d48ed6079103dbf74e53fc2be964cd7fac9.tar.zst
gsoc2013-evolution-b06d4d48ed6079103dbf74e53fc2be964cd7fac9.zip
Made moving columns to the right work properly.
2000-06-21 Christopher James Lahey <clahey@helixcode.com> * e-table-header.c: Made moving columns to the right work properly. svn path=/trunk/; revision=3681
Diffstat (limited to 'widgets')
-rw-r--r--widgets/e-table/ChangeLog5
-rw-r--r--widgets/e-table/e-table-header.c3
-rw-r--r--widgets/table/e-table-header.c3
3 files changed, 11 insertions, 0 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index 0c690320eb..6b3b94eef3 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-21 Christopher James Lahey <clahey@helixcode.com>
+
+ * e-table-header.c: Made moving columns to the right work
+ properly.
+
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-leaf.c: Fix a minor warning.
diff --git a/widgets/e-table/e-table-header.c b/widgets/e-table/e-table-header.c
index 383f7a9080..2ac82215df 100644
--- a/widgets/e-table/e-table-header.c
+++ b/widgets/e-table/e-table-header.c
@@ -449,6 +449,9 @@ e_table_header_move (ETableHeader *eth, int source_index, int target_index)
g_return_if_fail (source_index < eth->col_count);
g_return_if_fail (target_index < eth->col_count);
+ if (source_index < target_index)
+ target_index --;
+
old = eth->columns [source_index];
eth_do_remove (eth, source_index, FALSE);
eth_do_insert (eth, target_index, old);
diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c
index 383f7a9080..2ac82215df 100644
--- a/widgets/table/e-table-header.c
+++ b/widgets/table/e-table-header.c
@@ -449,6 +449,9 @@ e_table_header_move (ETableHeader *eth, int source_index, int target_index)
g_return_if_fail (source_index < eth->col_count);
g_return_if_fail (target_index < eth->col_count);
+ if (source_index < target_index)
+ target_index --;
+
old = eth->columns [source_index];
eth_do_remove (eth, source_index, FALSE);
eth_do_insert (eth, target_index, old);