gclosure: Use (transfer floating) for closure construction functions

They return floating references, so that should be reflected in the
introspection annotations.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall
2022-12-02 11:59:16 +00:00
parent dddfdb8488
commit c09216f810

View File

@@ -190,7 +190,7 @@ enum {
* } * }
* ]| * ]|
* *
* Returns: (transfer none): a floating reference to a new #GClosure * Returns: (transfer floating): a floating reference to a new #GClosure
*/ */
GClosure* GClosure*
g_closure_new_simple (guint sizeof_closure, g_closure_new_simple (guint sizeof_closure,
@@ -964,7 +964,7 @@ _g_closure_set_va_marshal (GClosure *closure,
* *
* @destroy_data will be called as a finalize notifier on the #GClosure. * @destroy_data will be called as a finalize notifier on the #GClosure.
* *
* Returns: (transfer none): a floating reference to a new #GCClosure * Returns: (transfer floating): a floating reference to a new #GCClosure
*/ */
GClosure* GClosure*
g_cclosure_new (GCallback callback_func, g_cclosure_new (GCallback callback_func,
@@ -994,7 +994,7 @@ g_cclosure_new (GCallback callback_func,
* *
* @destroy_data will be called as a finalize notifier on the #GClosure. * @destroy_data will be called as a finalize notifier on the #GClosure.
* *
* Returns: (transfer none): a floating reference to a new #GCClosure * Returns: (transfer floating): a floating reference to a new #GCClosure
*/ */
GClosure* GClosure*
g_cclosure_new_swap (GCallback callback_func, g_cclosure_new_swap (GCallback callback_func,
@@ -1162,7 +1162,7 @@ g_type_iface_meta_marshalv (GClosure *closure,
* @struct_offset in the class structure of the interface or classed type * @struct_offset in the class structure of the interface or classed type
* identified by @itype. * identified by @itype.
* *
* Returns: (transfer none): a floating reference to a new #GCClosure * Returns: (transfer floating): a floating reference to a new #GCClosure
*/ */
GClosure* GClosure*
g_signal_type_cclosure_new (GType itype, g_signal_type_cclosure_new (GType itype,