diff --git a/gtk/gtksearchengine.c b/gtk/gtksearchengine.c index d9f39bc1fc..941536d076 100644 --- a/gtk/gtksearchengine.c +++ b/gtk/gtksearchengine.c @@ -178,8 +178,6 @@ static void _gtk_search_engine_init (GtkSearchEngine *engine) { engine->priv = _gtk_search_engine_get_instance_private (engine); - - engine->priv->recursive = TRUE; } static void @@ -412,28 +410,6 @@ _gtk_search_engine_error (GtkSearchEngine *engine, g_signal_emit (engine, signals[ERROR], 0, error_message); } -void -_gtk_search_engine_set_recursive (GtkSearchEngine *engine, - gboolean recursive) -{ - g_return_if_fail (GTK_IS_SEARCH_ENGINE (engine)); - - g_assert (!engine->priv->running); - - engine->priv->recursive = recursive; - - if (engine->priv->native) - _gtk_search_engine_set_recursive (engine->priv->native, recursive); -} - -gboolean -_gtk_search_engine_get_recursive (GtkSearchEngine *engine) -{ - g_return_val_if_fail (GTK_IS_SEARCH_ENGINE (engine), TRUE); - - return engine->priv->recursive; -} - void _gtk_search_engine_set_model (GtkSearchEngine *engine, GtkFileSystemModel *model) diff --git a/gtk/gtksearchengine.h b/gtk/gtksearchengine.h index 6a016d5d21..05602585a6 100644 --- a/gtk/gtksearchengine.h +++ b/gtk/gtksearchengine.h @@ -88,9 +88,6 @@ void _gtk_search_engine_finished (GtkSearchEngine *engine, gboolean got_results); void _gtk_search_engine_error (GtkSearchEngine *engine, const gchar *error_message); -void _gtk_search_engine_set_recursive (GtkSearchEngine *engine, - gboolean recursive); -gboolean _gtk_search_engine_get_recursive (GtkSearchEngine *engine); void _gtk_search_hit_free (GtkSearchHit *hit); GtkSearchHit *_gtk_search_hit_dup (GtkSearchHit *hit); diff --git a/gtk/gtksearchenginemodel.c b/gtk/gtksearchenginemodel.c index 58682e15f9..3937e6eef2 100644 --- a/gtk/gtksearchenginemodel.c +++ b/gtk/gtksearchenginemodel.c @@ -28,8 +28,6 @@ #include -#define BATCH_SIZE 500 - struct _GtkSearchEngineModel { GtkSearchEngine parent; @@ -37,7 +35,6 @@ struct _GtkSearchEngineModel GtkFileSystemModel *model; GtkQuery *query; - gboolean query_finished; guint idle; }; diff --git a/gtk/gtksearchenginetracker3.c b/gtk/gtksearchenginetracker3.c index aa50a0dd12..69139c2731 100644 --- a/gtk/gtksearchenginetracker3.c +++ b/gtk/gtksearchenginetracker3.c @@ -195,9 +195,9 @@ gtk_search_engine_tracker3_start (GtkSearchEngine *engine) GtkSearchEngineTracker3 *tracker; TrackerSparqlStatement *statement; const gchar *search_text; - gboolean recursive; gchar *match; GFile *location; + gboolean recursive; tracker = GTK_SEARCH_ENGINE_TRACKER3 (engine); @@ -216,7 +216,7 @@ gtk_search_engine_tracker3_start (GtkSearchEngine *engine) tracker->query_pending = TRUE; search_text = gtk_query_get_text (tracker->query); location = gtk_query_get_location (tracker->query); - recursive = _gtk_search_engine_get_recursive (engine); + recursive = TRUE; if (location) {