[nautilus/gnome-3-8] file: do not reverse collated order for files with same search rank
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-8] file: do not reverse collated order for files with same search rank
- Date: Tue, 16 Apr 2013 00:23:01 +0000 (UTC)
commit 771d497088bdc7c6c8be3c6a38f815c8ad531fca
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Apr 4 20:01:35 2013 -0400
file: do not reverse collated order for files with same search rank
When two search results rank equally, we fall back to the collated
order.
Since search is usually ranked reversed (highest at the top), we need to
ensure we don't accidentally reverse the collated order as well.
https://bugzilla.gnome.org/show_bug.cgi?id=688772
libnautilus-private/nautilus-file.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 60a1954..35235e1 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -3191,6 +3191,9 @@ nautilus_file_compare_for_sort (NautilusFile *file_1,
result = compare_by_search_relevance (file_1, file_2);
if (result == 0) {
result = compare_by_full_path (file_1, file_2);
+
+ /* ensure alphabetical order for files of the same relevance */
+ reversed = FALSE;
}
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]