GNOME Bugzilla – Bug 657725
Improve introspection support for GMainLoop&co
Last modified: 2015-02-07 17:01:33 UTC
GMainLoop, GMainContext and GSource introspection is currently very low quality, because these structs are not boxed.
Created attachment 195218 [details] [review] Makes GMainLoop&co boxed types, adds a few missing annotations to them
Created attachment 195219 [details] [review] Diff of resulting GLib.gir file, illustrating impact of the patch
Review of attachment 195218 [details] [review]: Thanks, Pavel. There is definitely an old bug where we debated adding this, but since we've added boxed types for GDateTime and others, I think this just makes sense now. Previously we had basically said that this stuff from GLib should be manually bound, but the problem with that is the GLib API keeps evolving (like bug 655129), and it's just a pain point to keep up. ::: glib/gmain.h @@ +141,3 @@ * @status: Status information about the child process, * see waitpid(2) for more information about this field + * @data: (closure): user data passed to g_child_watch_add() Nowadays I generally prefer renaming the parameter rather than adding (closure). Just call it user_data.
Review of attachment 195218 [details] [review]: Committed with data->user_data rename instead of using (closure), as suggested. Thanks for the quick review Colin!
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]