Merge branch '1790-file-attribute-as-string-annotation' into 'master'

gfileinfo: Add missing (nullable) annotation to get_attribute_as_string()

Closes #1790

See merge request GNOME/glib!879
This commit is contained in:
Sebastian Dröge
2019-05-31 10:16:43 +00:00

View File

@@ -832,9 +832,10 @@ _g_file_info_get_attribute_value (GFileInfo *info,
* *
* Gets the value of a attribute, formated as a string. * Gets the value of a attribute, formated as a string.
* This escapes things as needed to make the string valid * This escapes things as needed to make the string valid
* utf8. * UTF-8.
* *
* Returns: a UTF-8 string associated with the given @attribute. * Returns: (nullable): a UTF-8 string associated with the given @attribute, or
* %NULL if the attribute wasnt set.
* When you're done with the string it must be freed with g_free(). * When you're done with the string it must be freed with g_free().
**/ **/
char * char *