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, diff --git a/gobject/gsignal.c b/gobject/gsignal.c index 6fee8ec3f..dd1c6b50d 100644 --- a/gobject/gsignal.c +++ b/gobject/gsignal.c @@ -2400,6 +2400,9 @@ g_signal_get_invocation_hint (gpointer instance) * * Connects a closure to a signal for a particular object. * + * If @closure is a floating reference (see g_closure_sink()), this function + * takes ownership of @closure. + * * Returns: the handler ID (always greater than 0 for successful connections) */ gulong @@ -2462,6 +2465,9 @@ g_signal_connect_closure_by_id (gpointer instance, * * Connects a closure to a signal for a particular object. * + * If @closure is a floating reference (see g_closure_sink()), this function + * takes ownership of @closure. + * * Returns: the handler ID (always greater than 0 for successful connections) */ gulong