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.
This commit is contained in:
Matthias Clasen
2015-07-01 12:51:20 -07:00
parent f87f43b622
commit 33b5c26f41
6 changed files with 306 additions and 5 deletions

View File

@ -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__ */