diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-01-03 16:16:35 -0800 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-01-04 14:01:24 -0800 |
commit | e6fc4c1bcba459dfd56f2d2019e24bfbaf29a493 (patch) | |
tree | d929ce30f4212c4a8d38c41fa750a37ed0c63f71 /giscanner/gdumpparser.py | |
parent | 17c160a8ee7dd6a3eaaaea1bda93e7d5e9912a64 (diff) | |
download | gobject-introspection-e6fc4c1bcba459dfd56f2d2019e24bfbaf29a493.tar.gz |
scanner: Replace GInitiallyUnowned field sharing with generic solution
Remove GInitiallyUnowned special case in gdumpparser where fields are
copied from GObject. Add generic solution where anytime we have multiple
typedef structs, the fields become shared:
typedef struct _Foo Foo;
typedef struct _Foo Bar;
struct _Foo {...};
https://bugzilla.gnome.org/show_bug.cgi?id=581525
Diffstat (limited to 'giscanner/gdumpparser.py')
-rw-r--r-- | giscanner/gdumpparser.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py index e5490b1b..e1fc9358 100644 --- a/giscanner/gdumpparser.py +++ b/giscanner/gdumpparser.py @@ -326,17 +326,6 @@ different --identifier-prefix.""" % (xmlnode.attrib['name'], self._namespace.ide self._introspect_signals(node, xmlnode) self._introspect_implemented_interfaces(node, xmlnode) self._add_record_fields(node) - - if node.name == 'InitiallyUnowned': - # http://bugzilla.gnome.org/show_bug.cgi?id=569408 - # GInitiallyUnowned is actually a typedef for GObject, but - # that's not reflected in the GIR, where it appears as a - # subclass (as it appears in the GType hierarchy). So - # what we do here is copy all of the GObject fields into - # GInitiallyUnowned so that struct offset computation - # works correctly. - node.fields = self._namespace.get('Object').fields - self._namespace.append(node, replace=True) def _introspect_interface(self, xmlnode): |