gboxed: Add missing (scope forever) annotations

Boxed types can never be unregistered, so these closures have to be
around forever.

Fixes some g-ir-scanner warnings.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3037
This commit is contained in:
Philip Withnall 2023-11-29 12:04:12 +00:00
parent 58208c4ace
commit 47869719be

View File

@ -255,8 +255,8 @@ boxed_proxy_lcopy_value (const GValue *value,
/**
* g_boxed_type_register_static:
* @name: Name of the new boxed type.
* @boxed_copy: Boxed structure copy function.
* @boxed_free: Boxed structure free function.
* @boxed_copy: (scope forever): Boxed structure copy function.
* @boxed_free: (scope forever): Boxed structure free function.
*
* This function creates a new %G_TYPE_BOXED derived type id for a new
* boxed type with name @name.