summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-12 13:57:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-12 13:58:21 -0400
commit7a2fb58758000bdc353205a6ec06dd0497f34b7a (patch)
tree71287d27b0706bcbb1fa44590093b632f087e773
parent301cf981e30b70d6e829e29b367e019a678ee8af (diff)
downloadglib-gio-file-info-2.tar.gz
localfile: Set the file on file infosgio-file-info-2
Associate the original GFile with a GFileInfo created for it. This will be used in the GTK filechooser.
-rw-r--r--gio/glocalfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index a92c7b28b..73bbb11bb 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -1258,7 +1258,8 @@ g_local_file_query_info (GFile *file,
info = _g_local_file_info_get (basename, local->filename,
matcher, flags, &parent_info,
error);
-
+
+ g_file_info_set_file (info, file);
_g_local_file_info_free_parent_info (&parent_info);
g_free (basename);