[gvfs/file-info-set-file: 2/2] daemonfile: Associate the file with the info



commit 8b66b5d58a42c85a6ad7a7449a0b4df3788d12d4
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 3 23:11:46 2020 -0400

    daemonfile: Associate the file with the info
    
    Associate the file with the file info created for
    it. This is going to be used by the GTK filechooser.

 client/gdaemonfile.c | 8 ++++++--
 1 file 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]