From 1c15f158b08bd8b9b45a75e1d355e21567f070e0 Mon Sep 17 00:00:00 2001 From: badcel <33569-badcel@users.noreply.gitlab.gnome.org> Date: Thu, 23 Feb 2023 20:38:37 +0100 Subject: [PATCH] gobject: Fix some annotations --- gobject/gboxed.c | 4 ++-- gobject/gobject.c | 4 ++-- gobject/gvaluetypes.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gobject/gboxed.c b/gobject/gboxed.c index 04d283a7e..242ba09a6 100644 --- a/gobject/gboxed.c +++ b/gobject/gboxed.c @@ -439,7 +439,7 @@ g_boxed_free (GType boxed_type, * * 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 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), * return_value); * - * Returns: boxed contents of @value + * Returns: (transfer full) (nullable): boxed contents of @value */ gpointer g_value_dup_boxed (const GValue *value) diff --git a/gobject/gobject.c b/gobject/gobject.c index 19ed1a866..a61754b9f 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -4569,7 +4569,7 @@ g_value_take_object (GValue *value, * * 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 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 * %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. */ gpointer diff --git a/gobject/gvaluetypes.c b/gobject/gvaluetypes.c index a7e086d12..f49058486 100644 --- a/gobject/gvaluetypes.c +++ b/gobject/gvaluetypes.c @@ -1133,7 +1133,7 @@ g_value_take_string (GValue *value, * * Get the contents of a %G_TYPE_STRING #GValue. * - * Returns: string content of @value + * Returns: (nullable) (transfer none): string content of @value */ const gchar* 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. * - * 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* g_value_dup_string (const GValue *value)