summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystemmodel.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-06-18 15:18:30 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-06-18 15:20:06 -0400
commit1d63335c8e51aee978521afdc77880a912b9f743 (patch)
treede139f408aba423b3ce205d2e8c5f1e56db07b4b /gtk/gtkfilesystemmodel.h
parent1b755c546e5ab0693ae921f7febc1c8bb439193f (diff)
downloadgtk+-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.h3
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);