diff options
author | Søren Sandmann <sandmann@redhat.com> | 2004-08-24 22:37:23 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2004-08-24 22:37:23 +0000 |
commit | e507eb3429817c1cbd5b0bc5abbdbc69c8e5219e (patch) | |
tree | dc8f4b33a4cd26932351ca58d37e506246fc2cab /gtk/gtkliststore.c | |
parent | eb38c54837ff92db6c07473c0a39975035b30a76 (diff) | |
download | gdk-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.c | 4 |
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; |