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
This commit is contained in:
Pablo Correa Gómez 2025-05-29 23:46:19 +02:00
parent 2db24eeef0
commit bf24002428
No known key found for this signature in database
GPG Key ID: 7A342565FF635F79

View File

@ -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.
*/