summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-03 23:11:46 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-12 15:10:10 -0400
commit8b66b5d58a42c85a6ad7a7449a0b4df3788d12d4 (patch)
tree5f0313173100819f1cdf03105d9483e94810036a
parentd9545ea7c935ef5dc0f52145f7b90bd683c8ee07 (diff)
downloadgvfs-file-info-set-file.tar.gz
daemonfile: Associate the file with the infofile-info-set-file
Associate the file with the file info created for it. This is going to be used by the GTK filechooser.
-rw-r--r--client/gdaemonfile.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index 2a8c1511..6a235579 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -840,8 +840,11 @@ g_daemon_file_query_info (GFile *file,
g_variant_unref (iter_info);
if (info)
- add_metadata (file, attributes, info);
-
+ {
+ add_metadata (file, attributes, info);
+ g_file_info_set_file (info, file);
+ }
+
return info;
}
@@ -890,6 +893,7 @@ query_info_async_cb (GVfsDBusMount *proxy,
file = G_FILE (g_task_get_source_object (task));
add_metadata (file, data->attributes, info);
+ g_file_info_set_file (info, file);
g_task_return_pointer (task, info, g_object_unref);