Commit da83d711 authored by Philip Withnall's avatar Philip Withnall
Browse files

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's avatarPhilip Withnall <pwithnall@endlessos.org>

Helps: #2227
parent 7c3891af
......@@ -1923,7 +1923,7 @@ g_bookmark_file_load_from_data_dirs (GBookmarkFile *bookmark,
*
* 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
*
* 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
* @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.
*
* 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
* @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.
*
* 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
* @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.
*
* Since: 2.12
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment