[glib/gio-file-info: 2/2] localfile: Set the standard::file attribute
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/gio-file-info: 2/2] localfile: Set the standard::file attribute
- Date: Sat, 4 Jul 2020 02:53:57 +0000 (UTC)
commit 9f0582c5ac530ada0762d6adce15c7d552fdce55
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 3 22:49:19 2020 -0400
localfile: Set the standard::file attribute
When requested, set the standard::file attribute.
This attribute is going to be used by the GTK file
chooser.
gio/glocalfile.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index a92c7b28b..6f0ba891a 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -1263,6 +1263,9 @@ g_local_file_query_info (GFile *file,
_g_local_file_info_free_parent_info (&parent_info);
g_free (basename);
+ if (g_file_attribute_matcher_matches (matcher, G_FILE_ATTRIBUTE_STANDARD_FILE))
+ g_file_info_set_attribute_object (info, G_FILE_ATTRIBUTE_STANDARD_FILE, G_OBJECT (file));
+
g_file_attribute_matcher_unref (matcher);
return info;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]