gio: Add g_file_info_set/get_file

Attaching the original GFile to a GFileInfo created
from it useful to avoid having to carry around the
(file, info) pair. In particular, it allows to store
just a self-contained GFileInfo in a list model. This
is going to be used in the GTK file chooser.
This commit is contained in:
Matthias Clasen
2020-07-12 13:54:58 -04:00
parent 570f27a90a
commit 301cf981e3
3 changed files with 48 additions and 0 deletions

View File

@@ -400,6 +400,7 @@ g_file_info_get_symlink_target
g_file_info_get_etag
g_file_info_get_sort_order
g_file_info_get_deletion_date
g_file_info_get_file
g_file_info_set_attribute_mask
g_file_info_unset_attribute_mask
g_file_info_set_file_type
@@ -416,6 +417,7 @@ g_file_info_set_modification_time
g_file_info_set_modification_date_time
g_file_info_set_symlink_target
g_file_info_set_sort_order
g_file_info_set_file
g_file_attribute_matcher_new
g_file_attribute_matcher_ref
g_file_attribute_matcher_subtract