Fix the transfer annotations for GClosure constructors

The GClosure constructors in GObject return an instance with a floating
reference.

Fixes: #2299
This commit is contained in:
Emmanuele Bassi 2021-01-18 12:16:55 +00:00 committed by Sebastian Dröge
parent 4c83079c0d
commit e97ebfe628

View File

@ -4361,7 +4361,7 @@ g_object_watch_closure (GObject *object,
* @object and the created closure. This function is mainly useful * @object and the created closure. This function is mainly useful
* when implementing new types of closures. * when implementing new types of closures.
* *
* Returns: (transfer full): a newly allocated #GClosure * Returns: (transfer floating): a newly allocated #GClosure
*/ */
GClosure * GClosure *
g_closure_new_object (guint sizeof_closure, g_closure_new_object (guint sizeof_closure,
@ -4389,7 +4389,7 @@ g_closure_new_object (guint sizeof_closure,
* associated with a #GObject, and want the callback to no longer run * associated with a #GObject, and want the callback to no longer run
* after the object is is freed. * after the object is is freed.
* *
* Returns: a new #GCClosure * Returns: (transfer floating): a new #GCClosure
*/ */
GClosure * GClosure *
g_cclosure_new_object (GCallback callback_func, g_cclosure_new_object (GCallback callback_func,
@ -4418,7 +4418,7 @@ g_cclosure_new_object (GCallback callback_func,
* associated with a #GObject, and want the callback to no longer run * associated with a #GObject, and want the callback to no longer run
* after the object is is freed. * after the object is is freed.
* *
* Returns: a new #GCClosure * Returns: (transfer floating): a new #GCClosure
*/ */
GClosure * GClosure *
g_cclosure_new_object_swap (GCallback callback_func, g_cclosure_new_object_swap (GCallback callback_func,