treemodelsort: fix iter_previous so it can go back to the first item
It was getting the previous element, then checking whether it was the first one, that has to be inverted so it doesn't stop on the second item. https://bugzilla.gnome.org/show_bug.cgi?id=674587
This commit is contained in:
committed by
Matthias Clasen
parent
b3a66c59ad
commit
676441398a
@ -1406,12 +1406,13 @@ gtk_tree_model_sort_iter_previous (GtkTreeModel *tree_model,
|
||||
|
||||
elt = iter->user_data2;
|
||||
|
||||
siter = g_sequence_iter_prev (elt->siter);
|
||||
if (g_sequence_iter_is_begin (siter))
|
||||
if (g_sequence_iter_is_begin (elt->siter))
|
||||
{
|
||||
iter->stamp = 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
siter = g_sequence_iter_prev (elt->siter);
|
||||
iter->user_data2 = GET_ELT (siter);
|
||||
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user