From bf2400242897b1fb8afc9389c66f33f476d9801d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Thu, 29 May 2025 23:46:19 +0200 Subject: [PATCH] gobject: clarify in documentation that g_value_set_boxed copies This comes as a consequence of confusion by two devs[1]. The wording is copied from g_value_set_string, which is more clear on what the function is doing with the object it's consuming. [1] https://gitlab.gnome.org/GNOME/Incubator/papers/-/merge_requests/467#note_2455770 --- gobject/gboxed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gobject/gboxed.c b/gobject/gboxed.c index fce661df2..666637fd9 100644 --- a/gobject/gboxed.c +++ b/gobject/gboxed.c @@ -466,7 +466,7 @@ value_set_boxed_internal (GValue *value, /** * g_value_set_boxed: * @value: a valid #GValue of %G_TYPE_BOXED derived type - * @v_boxed: (nullable): boxed value to be set + * @v_boxed: (nullable): caller-owned boxed object to be duplicated for the #GValue * * Set the contents of a %G_TYPE_BOXED derived #GValue to @v_boxed. */