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:
@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user