diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-12-04 22:26:14 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-12-04 22:26:14 -0500 |
commit | 39c0ba59bc82ff6763bd1d76490816fd0c9c2d7d (patch) | |
tree | 8f3fcef1d736548923cef33ed917fbeedd23d6f9 /gtk | |
parent | 8718e9296e381f7f4a894f0430c07c27dd02d98e (diff) | |
download | gtk+-39c0ba59bc82ff6763bd1d76490816fd0c9c2d7d.tar.gz |
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
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkplacessidebar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 80426a33cc..48364d8a9f 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -3815,6 +3815,10 @@ places_sidebar_sort_func (GtkTreeModel *model, { retval = 1; } + else if (place_type_b == PLACES_CONNECT_TO_SERVER) + { + retval = -1; + } return retval; } |