[glib/gio-file-info-2: 2/2] localfile: Set the file on file infos



commit 7a2fb58758000bdc353205a6ec06dd0497f34b7a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jul 12 13:57:20 2020 -0400

    localfile: Set the file on file infos
    
    Associate the original GFile with a GFileInfo
    created for it. This will be used in the
    GTK filechooser.

 gio/glocalfile.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
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);


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