GKeyFile: fix annotation of g_key_file_load_from_data

(array) without (element-type) means "array of the same type as
the C type", so gchar* with (array) is interpreted as an array of
strings. Since GKeyFiles must be UTF-8 encoded anyway, just
annotate it as a string.

https://bugzilla.gnome.org/show_bug.cgi?id=658484
This commit is contained in:
Giovanni Campagna 2012-02-13 16:42:44 +01:00
parent 5b8a6900d3
commit d240b88315

View File

@ -862,8 +862,8 @@ g_key_file_load_from_file (GKeyFile *key_file,
/** /**
* g_key_file_load_from_data: * g_key_file_load_from_data:
* @key_file: an empty #GKeyFile struct * @key_file: an empty #GKeyFile struct
* @data: (array length=length): key file loaded in memory * @data: key file loaded in memory
* @length: the length of @data in bytes * @length: the length of @data in bytes (or -1 if data is nul-terminated)
* @flags: flags from #GKeyFileFlags * @flags: flags from #GKeyFileFlags
* @error: return location for a #GError, or %NULL * @error: return location for a #GError, or %NULL
* *