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).
This commit is contained in:
Søren Sandmann 2004-08-24 22:37:23 +00:00 committed by Søren Sandmann Pedersen
parent eb38c54837
commit e507eb3429
5 changed files with 10 additions and 10 deletions

View File

@ -5,8 +5,8 @@ Wed Aug 25 00:22:48 2004 Søren Sandmann <sandmann@redhat.com>
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(). (#150159, Robert
Ögren).
errors in gtk_list_store_move_before/after(). (#150983, patch by
Robert Ögren).
Tue Aug 24 21:46:42 2004 Søren Sandmann <sandmann@redhat.com>

View File

@ -5,8 +5,8 @@ Wed Aug 25 00:22:48 2004 Søren Sandmann <sandmann@redhat.com>
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(). (#150159, Robert
Ögren).
errors in gtk_list_store_move_before/after(). (#150983, patch by
Robert Ögren).
Tue Aug 24 21:46:42 2004 Søren Sandmann <sandmann@redhat.com>

View File

@ -5,8 +5,8 @@ Wed Aug 25 00:22:48 2004 Søren Sandmann <sandmann@redhat.com>
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(). (#150159, Robert
Ögren).
errors in gtk_list_store_move_before/after(). (#150983, patch by
Robert Ögren).
Tue Aug 24 21:46:42 2004 Søren Sandmann <sandmann@redhat.com>

View File

@ -5,8 +5,8 @@ Wed Aug 25 00:22:48 2004 Søren Sandmann <sandmann@redhat.com>
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(). (#150159, Robert
Ögren).
errors in gtk_list_store_move_before/after(). (#150983, patch by
Robert Ögren).
Tue Aug 24 21:46:42 2004 Søren Sandmann <sandmann@redhat.com>

View File

@ -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;