[gtk/gtk-3-24: 1/2] GtkSearchEngineSimple: Disable recursive search
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/2] GtkSearchEngineSimple: Disable recursive search
- Date: Fri, 14 Feb 2020 13:15:58 +0000 (UTC)
commit 68bd429edd963973a34edfa326f4ec8882f185b0
Author: Xavier Claessens <xavier claessens collabora com>
Date: Sun Jan 26 07:40:46 2020 -0500
GtkSearchEngineSimple: Disable recursive search
It is too slow to be useful, rely on the Tracker engine to perform recursive search.
Fixes: #2392.
gtk/gtksearchenginesimple.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtksearchenginesimple.c b/gtk/gtksearchenginesimple.c
index 6daf2f8631..2c3185d49e 100644
--- a/gtk/gtksearchenginesimple.c
+++ b/gtk/gtksearchenginesimple.c
@@ -109,7 +109,8 @@ search_thread_data_new (GtkSearchEngineSimple *engine,
data->engine = g_object_ref (engine);
data->directories = g_queue_new ();
data->query = g_object_ref (query);
- data->recursive = _gtk_search_engine_get_recursive (GTK_SEARCH_ENGINE (engine));
+ /* Simple search engine is too slow to be recursive */
+ data->recursive = FALSE;
queue_if_local (data, gtk_query_get_location (query));
data->cancellable = g_cancellable_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]