mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-10 14:50:08 +02:00
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:
parent
2db24eeef0
commit
bf24002428
@ -466,7 +466,7 @@ value_set_boxed_internal (GValue *value,
|
|||||||
/**
|
/**
|
||||||
* g_value_set_boxed:
|
* g_value_set_boxed:
|
||||||
* @value: a valid #GValue of %G_TYPE_BOXED derived type
|
* @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.
|
* Set the contents of a %G_TYPE_BOXED derived #GValue to @v_boxed.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user