Merge branch 'issue-2299' into 'master'

Fix the transfer annotations for GClosure constructors

Closes #2299

See merge request GNOME/glib!1886
This commit is contained in:
Sebastian Dröge
2021-01-19 09:54:44 +00:00

View File

@@ -4361,7 +4361,7 @@ g_object_watch_closure (GObject *object,
* @object and the created closure. This function is mainly useful
* when implementing new types of closures.
*
* Returns: (transfer full): a newly allocated #GClosure
* Returns: (transfer floating): a newly allocated #GClosure
*/
GClosure *
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
* after the object is is freed.
*
* Returns: a new #GCClosure
* Returns: (transfer floating): a new #GCClosure
*/
GClosure *
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
* after the object is is freed.
*
* Returns: a new #GCClosure
* Returns: (transfer floating): a new #GCClosure
*/
GClosure *
g_cclosure_new_object_swap (GCallback callback_func,