GNOME Bugzilla – Bug 735076
Make use of instance-argument annotations
Last modified: 2017-03-22 08:33:06 UTC
Now that bug 729662 is fixed we have an API for getting instance argument transfer annotations, we should make use of it in the bindings. Basically using: g_callable_info_get_instance_ownership_transfer() where we fill create the instance cache: https://git.gnome.org/browse/pygobject/tree/gi/pygi-cache.c?id=3.13.90#n909 This will also require a version dependency bump on GI.
Created attachment 348407 [details] [review] Make use of instance-argument annotations Use g_callable_info_get_instance_ownership_transfer() instead of hardcoding the transfer for instances. get_instance_ownership_transfer() is available since 1.42.0, so no version dependency bump is required.
Review of attachment 348407 [details] [review]: Perfect, thank you.
Thanks