diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-06-18 15:18:30 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-06-18 15:20:06 -0400 |
commit | 1d63335c8e51aee978521afdc77880a912b9f743 (patch) | |
tree | de139f408aba423b3ce205d2e8c5f1e56db07b4b /gtk/gtkfilesystemmodel.h | |
parent | 1b755c546e5ab0693ae921f7febc1c8bb439193f (diff) | |
download | gtk+-1d63335c8e51aee978521afdc77880a912b9f743.tar.gz |
Use infos from search engine instead of getting them again
When the search engine provides hits with GFileInfo, use that
to add the hits to the model directly, without going through
another round of async get_info calls.
To do this, we add a batched variant of the
_gtk_file_system_model_update_file call that takes lists of
GFiles and GFileInfos. Again, we can avoid repeated resorting
that happens when the files are updated individually.
Diffstat (limited to 'gtk/gtkfilesystemmodel.h')
-rw-r--r-- | gtk/gtkfilesystemmodel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkfilesystemmodel.h b/gtk/gtkfilesystemmodel.h index 5a2c8b1eb3..b39be612ba 100644 --- a/gtk/gtkfilesystemmodel.h +++ b/gtk/gtkfilesystemmodel.h @@ -75,6 +75,9 @@ void _gtk_file_system_model_add_and_query_files (GtkFileSystemMod void _gtk_file_system_model_update_file (GtkFileSystemModel *model, GFile *file, GFileInfo *info); +void _gtk_file_system_model_update_files (GtkFileSystemModel *model, + GList *files, + GList *infos); void _gtk_file_system_model_set_show_hidden (GtkFileSystemModel *model, gboolean show_hidden); |