diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-01 12:51:20 -0700 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-04 00:29:25 -0400 |
commit | 33b5c26f419aab0c072a7ac49f450e861459b852 (patch) | |
tree | 04cbbc3a282a446a6dd4120c08ed80d93cec5c60 /gtk/gtksearchengine.h | |
parent | f87f43b6229d2314523c925d0f3584ab23c7adf9 (diff) | |
download | gtk+-33b5c26f419aab0c072a7ac49f450e861459b852.tar.gz |
file chooser: Add and use a model search engine
This search engine reuses the GFileInfo that is already loaded
for the file list, to ensure that hits from the current directory
always appear promptly.
Diffstat (limited to 'gtk/gtksearchengine.h')
-rw-r--r-- | gtk/gtksearchengine.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtksearchengine.h b/gtk/gtksearchengine.h index 9e92e3185d..e49eeb8c79 100644 --- a/gtk/gtksearchengine.h +++ b/gtk/gtksearchengine.h @@ -23,6 +23,7 @@ #define __GTK_SEARCH_ENGINE_H__ #include "gtkquery.h" +#include "gtkfilesystemmodel.h" #include <gio/gio.h> G_BEGIN_DECLS @@ -91,6 +92,9 @@ gboolean _gtk_search_engine_get_recursive (GtkSearchEngine *engine); void _gtk_search_hit_free (GtkSearchHit *hit); GtkSearchHit *_gtk_search_hit_dup (GtkSearchHit *hit); +void _gtk_search_engine_set_model (GtkSearchEngine *engine, + GtkFileSystemModel *model); + G_END_DECLS #endif /* __GTK_SEARCH_ENGINE_H__ */ |