GNOME Bugzilla – Bug 569930
g_registered_type_info_get_g_type does not handle GObject
Last modified: 2015-02-07 16:54:01 UTC
Johan and I discussed this on IRC but then he disappeared... GObject-2.0.gir has: <class name="Object" c:type="GObject" abstract="1" glib:type-name="GObject" glib:get-type="intern"> but g_registered_type_info_get_g_type() expects glib:get-type to always be a function name.
Created attachment 127599 [details] [review] make g_registered_type_info_get_g_type() recognize "intern"
Looks good; my one comment is that I'm a big fan of comments for magic constants. The comment could just be a link to this bug.
(In reply to comment #2) > Looks good; my one comment is that I'm a big fan of comments for magic > constants. The comment could just be a link to this bug. Or maybe in the python code that generates that? But it will eventually go away anyway; once gobject-introspection moves into glib, it will automatically be depending on a version of gobject new enough to have g_object_get_type(), so the special case can go away...
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]