gobject: Fix some annotations

This commit is contained in:
badcel 2023-02-23 20:38:37 +01:00
parent d1415f857e
commit 1c15f158b0
No known key found for this signature in database
GPG Key ID: 70A8373EEB2233E0
3 changed files with 6 additions and 6 deletions

View File

@ -439,7 +439,7 @@ g_boxed_free (GType boxed_type,
* *
* Get the contents of a %G_TYPE_BOXED derived #GValue. * Get the contents of a %G_TYPE_BOXED derived #GValue.
* *
* Returns: (transfer none): boxed contents of @value * Returns: (transfer none) (nullable): boxed contents of @value
*/ */
gpointer gpointer
g_value_get_boxed (const GValue *value) g_value_get_boxed (const GValue *value)
@ -459,7 +459,7 @@ g_value_get_boxed (const GValue *value)
* g_boxed_free(), e.g. like: g_boxed_free (G_VALUE_TYPE (@value), * g_boxed_free(), e.g. like: g_boxed_free (G_VALUE_TYPE (@value),
* return_value); * return_value);
* *
* Returns: boxed contents of @value * Returns: (transfer full) (nullable): boxed contents of @value
*/ */
gpointer gpointer
g_value_dup_boxed (const GValue *value) g_value_dup_boxed (const GValue *value)

View File

@ -4569,7 +4569,7 @@ g_value_take_object (GValue *value,
* *
* Get the contents of a %G_TYPE_OBJECT derived #GValue. * Get the contents of a %G_TYPE_OBJECT derived #GValue.
* *
* Returns: (type GObject.Object) (transfer none): object contents of @value * Returns: (type GObject.Object) (transfer none) (nullable): object contents of @value
*/ */
gpointer gpointer
g_value_get_object (const GValue *value) g_value_get_object (const GValue *value)
@ -4587,7 +4587,7 @@ g_value_get_object (const GValue *value)
* its reference count. If the contents of the #GValue are %NULL, then * its reference count. If the contents of the #GValue are %NULL, then
* %NULL will be returned. * %NULL will be returned.
* *
* Returns: (type GObject.Object) (transfer full): object content of @value, * Returns: (type GObject.Object) (transfer full) (nullable): object content of @value,
* should be unreferenced when no longer needed. * should be unreferenced when no longer needed.
*/ */
gpointer gpointer

View File

@ -1133,7 +1133,7 @@ g_value_take_string (GValue *value,
* *
* Get the contents of a %G_TYPE_STRING #GValue. * Get the contents of a %G_TYPE_STRING #GValue.
* *
* Returns: string content of @value * Returns: (nullable) (transfer none): string content of @value
*/ */
const gchar* const gchar*
g_value_get_string (const GValue *value) g_value_get_string (const GValue *value)
@ -1149,7 +1149,7 @@ g_value_get_string (const GValue *value)
* *
* Get a copy the contents of a %G_TYPE_STRING #GValue. * Get a copy the contents of a %G_TYPE_STRING #GValue.
* *
* Returns: a newly allocated copy of the string content of @value * Returns: (nullable) (transfer full): a newly allocated copy of the string content of @value
*/ */
gchar* gchar*
g_value_dup_string (const GValue *value) g_value_dup_string (const GValue *value)