[glib: 1/2] gfileinfo: Fix annotation for g_file_info_set_attribute_stringv
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gfileinfo: Fix annotation for g_file_info_set_attribute_stringv
- Date: Thu, 17 Jan 2019 12:01:45 +0000 (UTC)
commit 6994be01f40247d45e34631e4ba86b987f0acc93
Author: Tomasz Miąsko <tomasz miasko gmail com>
Date: Thu Jan 17 00:00:00 2019 +0000
gfileinfo: Fix annotation for g_file_info_set_attribute_stringv
Annotate `attr_value` parameter of `g_file_info_set_attribute_stringv`
as zero-terminated array, since it isn't currently recognized as such.
gio/gfileinfo.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c
index fa53a9c49..420e46d56 100644
--- a/gio/gfileinfo.c
+++ b/gio/gfileinfo.c
@@ -1180,7 +1180,8 @@ _g_file_info_set_attribute_stringv_by_id (GFileInfo *info,
* g_file_info_set_attribute_stringv:
* @info: a #GFileInfo.
* @attribute: a file attribute key
- * @attr_value: (array) (element-type utf8): a %NULL terminated array of UTF-8 strings.
+ * @attr_value: (array zero-terminated=1) (element-type utf8): a %NULL
+ * terminated array of UTF-8 strings.
*
* Sets the @attribute to contain the given @attr_value,
* if possible.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]