GtkSearchEngine: Avoid crawling indexed locations

Add a framework to the simple engine that allows to skip
locations which are indexed by the native engine.
This commit is contained in:
Matthias Clasen
2015-06-19 00:11:01 -04:00
parent 33e2d12e90
commit c7d86ef4e4
2 changed files with 40 additions and 1 deletions

View File

@ -53,6 +53,12 @@ GType _gtk_search_engine_simple_get_type (void);
GtkSearchEngine* _gtk_search_engine_simple_new (void);
typedef gboolean (*GtkSearchEngineSimpleIsIndexed) (GFile *location, gpointer data);
void _gtk_search_engine_simple_set_indexed_cb (GtkSearchEngineSimple *engine,
GtkSearchEngineSimpleIsIndexed callback,
gpointer data);
G_END_DECLS
#endif /* __GTK_SEARCH_ENGINE_SIMPLE_H__ */