summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-07-28 14:22:04 +0200
committerCarlos Soriano <csoriano@gnome.org>2016-07-28 14:30:25 +0200
commit26a3ab4cd56c557df64993b604c6d3e53606a875 (patch)
treeac0ef0fab2d53bcef228285d57e8757535209a83
parentc0458bd65ff0846bf0170728dbd56014e0b365fd (diff)
downloadnautilus-26a3ab4cd56c557df64993b604c6d3e53606a875.tar.gz
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
-rw-r--r--src/nautilus-shell-search-provider.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-shell-search-provider.c b/src/nautilus-shell-search-provider.c
index dd91c29b6..811725ba1 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);