[nautilus: 2/3] list-view: Don't sort directories first on search results
- From: Gitlab Administrative User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus: 2/3] list-view: Don't sort directories first on search results
- Date: Fri, 3 Nov 2017 16:17:35 +0000 (UTC)
commit 9ec56a2d48ddf5db18757e680deb2421c15189da
Author: António Fernandes <antoniojpfernandes gmail com>
Date: Sun Oct 22 15:18:11 2017 +0000
list-view: Don't sort directories first on search results
We should not sort directories first on search results, as per the
previous commit.
However, on list view, this is checked at init, before a location is
set. We ignore if it is a search directory, as a result, we respect the
setting to sort directories first.
Instead, we will check it later, before loading the contents, when we
already know if it is a search directory or not.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=699629
src/nautilus-list-view.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 759e3b158..86f52c093 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -89,6 +89,7 @@ static void nautilus_list_view_set_zoom_level (NautilusListView *view,
NautilusListZoomLevel new_level);
static void nautilus_list_view_scroll_to_file (NautilusListView *view,
NautilusFile *file);
+static void nautilus_list_view_sort_directories_first_changed (NautilusFilesView *view);
static void apply_columns_settings (NautilusListView *list_view,
char **column_order,
@@ -2379,6 +2380,7 @@ nautilus_list_view_begin_loading (NautilusFilesView *view)
list_view = NAUTILUS_LIST_VIEW (view);
+ nautilus_list_view_sort_directories_first_changed (NAUTILUS_FILES_VIEW (list_view));
set_sort_order_from_metadata_and_preferences (list_view);
set_columns_settings_from_metadata_and_preferences (list_view);
check_allow_sort (list_view);
@@ -3648,7 +3650,6 @@ nautilus_list_view_init (NautilusListView *list_view)
nautilus_list_view_click_policy_changed (NAUTILUS_FILES_VIEW (list_view));
- nautilus_list_view_sort_directories_first_changed (NAUTILUS_FILES_VIEW (list_view));
nautilus_list_view_set_zoom_level (list_view, get_default_zoom_level ());
list_view->details->hover_path = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]