summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystemmodel.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-06-18 12:19:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-06-18 13:11:30 -0400
commitb2ceadb057011a120ff271c74bff5d2cbd6572bd (patch)
treecc9b0281dcdb7d0db49b270795108aa21b2c7598 /gtk/gtkfilesystemmodel.h
parent9590879e2f550a29d230099680081a9d3a90d414 (diff)
downloadgtk+-b2ceadb057011a120ff271c74bff5d2cbd6572bd.tar.gz
file system model: Add batched insertion
Add a batched version of gtk_file_system_model_add_and_query_file that takes a list of files and avoids resorting the model for each individual insertion. The querying is still done one-file-at-a-time, so more optimization is certainly possible.
Diffstat (limited to 'gtk/gtkfilesystemmodel.h')
-rw-r--r--gtk/gtkfilesystemmodel.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/gtkfilesystemmodel.h b/gtk/gtkfilesystemmodel.h
index 6c6a051aac..5a2c8b1eb3 100644
--- a/gtk/gtkfilesystemmodel.h
+++ b/gtk/gtkfilesystemmodel.h
@@ -66,9 +66,12 @@ const GValue * _gtk_file_system_model_get_value (GtkFileSystemModel
GtkTreeIter * iter,
int column);
-void _gtk_file_system_model_add_and_query_file (GtkFileSystemModel *model,
- GFile *file,
- const char *attributes);
+void _gtk_file_system_model_add_and_query_file (GtkFileSystemModel *model,
+ GFile *file,
+ const char *attributes);
+void _gtk_file_system_model_add_and_query_files (GtkFileSystemModel *model,
+ GList *files,
+ const char *attributes);
void _gtk_file_system_model_update_file (GtkFileSystemModel *model,
GFile *file,
GFileInfo *info);