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
commit 83af3f64f1

View File

@ -4361,9 +4361,9 @@ 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,
GObject *object) GObject *object)
{ {
@ -4389,9 +4389,9 @@ 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,
GObject *object) GObject *object)
{ {
@ -4418,9 +4418,9 @@ 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,
GObject *object) GObject *object)
{ {