mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
4c83079c0d
commit
e97ebfe628
@ -4361,9 +4361,9 @@ 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*
|
||||
GClosure *
|
||||
g_closure_new_object (guint sizeof_closure,
|
||||
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
|
||||
* 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,
|
||||
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
|
||||
* 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,
|
||||
GObject *object)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user