From c09216f810eb1c578348192405abdebbf1c1b966 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 2 Dec 2022 11:59:16 +0000 Subject: [PATCH] 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 --- gobject/gclosure.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gobject/gclosure.c b/gobject/gclosure.c index c5354db32..8d5d88d94 100644 --- a/gobject/gclosure.c +++ b/gobject/gclosure.c @@ -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* 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. * - * Returns: (transfer none): a floating reference to a new #GCClosure + * Returns: (transfer floating): a floating reference to a new #GCClosure */ GClosure* 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. * - * Returns: (transfer none): a floating reference to a new #GCClosure + * Returns: (transfer floating): a floating reference to a new #GCClosure */ GClosure* 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 * identified by @itype. * - * Returns: (transfer none): a floating reference to a new #GCClosure + * Returns: (transfer floating): a floating reference to a new #GCClosure */ GClosure* g_signal_type_cclosure_new (GType itype,