summaryrefslogtreecommitdiff
path: root/gtk/gtkliststore.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2004-08-24 22:37:23 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2004-08-24 22:37:23 +0000
commite507eb3429817c1cbd5b0bc5abbdbc69c8e5219e (patch)
treedc8f4b33a4cd26932351ca58d37e506246fc2cab /gtk/gtkliststore.c
parenteb38c54837ff92db6c07473c0a39975035b30a76 (diff)
downloadgdk-pixbuf-e507eb3429817c1cbd5b0bc5abbdbc69c8e5219e.tar.gz
Fix logical errors in gtk_list_store_move_before/after(). (#150983, patch
Wed Aug 25 00:09:07 2004 Søren Sandmann <sandmann@redhat.com> * gtk/gtkliststore.c (gtk_list_store_move_after): Fix logical errors in gtk_list_store_move_before/after(). (#150983, patch by Robert Ögren).
Diffstat (limited to 'gtk/gtkliststore.c')
-rw-r--r--gtk/gtkliststore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c
index df29412c7..9146168b7 100644
--- a/gtk/gtkliststore.c
+++ b/gtk/gtkliststore.c
@@ -1550,7 +1550,7 @@ gtk_list_store_move_before (GtkListStore *store,
g_return_if_fail (VALID_ITER (position, store));
if (position)
- pos = _gtk_sequence_ptr_get_position (iter->user_data);
+ pos = _gtk_sequence_ptr_get_position (position->user_data);
else
pos = -1;
@@ -1583,7 +1583,7 @@ gtk_list_store_move_after (GtkListStore *store,
g_return_if_fail (VALID_ITER (position, store));
if (position)
- pos = _gtk_sequence_ptr_get_position (iter->user_data);
+ pos = _gtk_sequence_ptr_get_position (position->user_data) + 1;
else
pos = 0;