GNOME Bugzilla – Bug 749785
Consider 'data' as a closure arg name
Last modified: 2018-02-08 12:35:23 UTC
Currently closure arg names are restricted to 'user_data' which misses the closure argument for multiple callbacks in glib/gobject/gio and other libraries. Many of the callbacks missing the closure argument call it 'data' instead.
Created attachment 304524 [details] [review] Scanner: Consider 'data' as a closure argument name However, only guess if another closure argument name has not already been specified or determined. As seen in the diff this fixes a number of cases just in the tests, there are many more cases in glib/gtk+ which are also fixed. This also makes it more practical for PyGObject to be careful about the closure, currently it manually checks the type. https://git.gnome.org/browse/pygobject/tree/gi/pygi-closure.c#n391
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/133.