gbookmarkfile: Add missing (transfer) and (nullable) return annotations

This commit only looks at the `Returns:` lines in the documentation, and
has examined all of them in the file. Function arguments have not been
checked.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Helps: #2227
This commit is contained in:
Philip Withnall 2020-12-11 23:20:43 +00:00
parent 7c3891afe9
commit da83d711d6

View File

@ -1923,7 +1923,7 @@ g_bookmark_file_load_from_data_dirs (GBookmarkFile *bookmark,
* *
* This function outputs @bookmark as a string. * This function outputs @bookmark as a string.
* *
* Returns: (array length=length) (element-type guint8): * Returns: (transfer full) (array length=length) (element-type guint8):
* a newly allocated string holding the contents of the #GBookmarkFile * a newly allocated string holding the contents of the #GBookmarkFile
* *
* Since: 2.12 * Since: 2.12
@ -2210,7 +2210,7 @@ g_bookmark_file_set_title (GBookmarkFile *bookmark,
* In the event the URI cannot be found, %NULL is returned and * In the event the URI cannot be found, %NULL is returned and
* @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
* *
* Returns: a newly allocated string or %NULL if the specified * Returns: (transfer full): a newly allocated string or %NULL if the specified
* URI cannot be found. * URI cannot be found.
* *
* Since: 2.12 * Since: 2.12
@ -2295,7 +2295,7 @@ g_bookmark_file_set_description (GBookmarkFile *bookmark,
* In the event the URI cannot be found, %NULL is returned and * In the event the URI cannot be found, %NULL is returned and
* @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
* *
* Returns: a newly allocated string or %NULL if the specified * Returns: (transfer full): a newly allocated string or %NULL if the specified
* URI cannot be found. * URI cannot be found.
* *
* Since: 2.12 * Since: 2.12
@ -2377,7 +2377,7 @@ g_bookmark_file_set_mime_type (GBookmarkFile *bookmark,
* event that the MIME type cannot be found, %NULL is returned and * event that the MIME type cannot be found, %NULL is returned and
* @error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE. * @error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE.
* *
* Returns: a newly allocated string or %NULL if the specified * Returns: (transfer full): a newly allocated string or %NULL if the specified
* URI cannot be found. * URI cannot be found.
* *
* Since: 2.12 * Since: 2.12