mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 10:50:08 +00:00
places sidebar: Fix the sort function
When returning 1 for a pair (a,b), a sort function must return -1 for the pair (b,a), otherwise things can go badly. https://bugzilla.gnome.org/show_bug.cgi?id=739729
This commit is contained in:
parent
8718e9296e
commit
39c0ba59bc
@ -3815,6 +3815,10 @@ places_sidebar_sort_func (GtkTreeModel *model,
|
|||||||
{
|
{
|
||||||
retval = 1;
|
retval = 1;
|
||||||
}
|
}
|
||||||
|
else if (place_type_b == PLACES_CONNECT_TO_SERVER)
|
||||||
|
{
|
||||||
|
retval = -1;
|
||||||
|
}
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user