[nautilus] shell-search-provider: make search recursive
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] shell-search-provider: make search recursive
- Date: Thu, 28 Jul 2016 12:29:01 +0000 (UTC)
commit 2668164c6cbca8633752b62870ac19d2594dc2e5
Author: Carlos Soriano <csoriano gnome org>
Date: Thu Jul 28 14:22:04 2016 +0200
shell-search-provider: make search recursive
We lost the recursivity on the shell search with the search rework.
We need to explicitly set recursivity on the simple provider now.
https://bugzilla.gnome.org/show_bug.cgi?id=766174
src/nautilus-shell-search-provider.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-shell-search-provider.c b/src/nautilus-shell-search-provider.c
index 41ee0d9..12a901a 100644
--- a/src/nautilus-shell-search-provider.c
+++ b/src/nautilus-shell-search-provider.c
@@ -394,6 +394,7 @@ execute_search (NautilusShellSearchProvider *self,
{
gchar *terms_joined;
NautilusQuery *query;
+ NautilusSearchEngine *simple_provider;
PendingSearch *pending_search;
GFile *home;
@@ -438,6 +439,8 @@ execute_search (NautilusShellSearchProvider *self,
g_debug ("*** Search engine search started");
nautilus_search_provider_set_query (NAUTILUS_SEARCH_PROVIDER (pending_search->engine),
query);
+ simple_provider = nautilus_search_engine_get_simple_provider (pending_search->engine);
+ g_object_set (simple_provider, "recursive", TRUE, NULL);
nautilus_search_provider_start (NAUTILUS_SEARCH_PROVIDER (pending_search->engine));
g_clear_object (&home);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]