GNOME Bugzilla – Bug 603038
InitiallyUnownedClass should contain all the fields as ObjectClass if we want offset counting to be correct in its sublasses
Last modified: 2015-02-07 16:52:37 UTC
Hacky patch attached, suggestions welcome.
Created attachment 148522 [details] [review] InitiallyUnownedClass should contain all the fields as ObjectClass if we want offset counting to be correct in its sublasses
Hmm there is already code to do this, see the special handling in _parse_get_type_function: if (self._namespace_name == 'GObject' and symbol in ('g_object_get_type', 'g_initially_unowned_get_type')): and _create_gobject has code to copy fields.
Review of attachment 148522 [details] [review]: I see, this is for the class struct. You might want to note we're doing the same thing for the instance structs in _create_gobject.
Attachment 148522 [details] pushed as 1020622 - InitiallyUnownedClass should contain all the fields as ObjectClass if we want offset counting to be correct in its sublasses
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]