[nautilus] view-icon-controller: Change search relevance metadata name



commit 147ea344432ea1d3da1b2f0e0d781391200af4cd
Author: Corey Berla <corey berla me>
Date:   Tue Apr 26 10:59:59 2022 -0700

    view-icon-controller: Change search relevance metadata name
    
    The metadata_name for NAUTILUS_FILE_SORT_BY_SEARCH_RELEVANCE is set
    to NULL.  When searching in grid view (or before automatically switched
    to list view), nautilus_keyfile_metadata_set_string() will fail to
    set the metadata.  Set metadata_name for
    NAUTILUS_FILE_SORT_BY_SEARCH_RELEVANCE to "search_relevance" to match
    the metadata_name in list view.
    
    Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2065

 src/nautilus-view-icon-controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-view-icon-controller.c b/src/nautilus-view-icon-controller.c
index 765e1d6cc..f0e3d96ac 100644
--- a/src/nautilus-view-icon-controller.c
+++ b/src/nautilus-view-icon-controller.c
@@ -113,7 +113,7 @@ static const SortConstants sorts_constants[] =
     },
     {
         NAUTILUS_FILE_SORT_BY_SEARCH_RELEVANCE,
-        NULL,
+        "search_relevance",
         "search-relevance",
         TRUE,
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]