summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-11-26 11:43:42 +0000
committerTomeu Vizoso <tomeu@sugarlabs.org>2009-11-30 16:17:34 +0000
commit1020622b48f685398b72eddce585cf7487a167fc (patch)
tree588753ffa9c85081bc51c66a5fc8f8849cc42ae9 /giscanner
parent91cc82321e38febd65cd79ecaef2850b475f8ff2 (diff)
downloadgobject-introspection-1020622b48f685398b72eddce585cf7487a167fc.tar.gz
InitiallyUnownedClass should contain all the fields as ObjectClass if we want offset counting to be correct in its sublasses
https://bugzilla.gnome.org/show_bug.cgi?id=603038
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/glibtransformer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/glibtransformer.py b/giscanner/glibtransformer.py
index c58644b0..158f8e81 100644
--- a/giscanner/glibtransformer.py
+++ b/giscanner/glibtransformer.py
@@ -558,6 +558,8 @@ class GLibTransformer(object):
elif record.name in g_internal_names:
# Avoid duplicates
return
+ if record.name == 'InitiallyUnownedClass':
+ record.fields = self._names.names['ObjectClass'][1].fields
node = self._names.names.get(record.name)
if node is None:
self._add_attribute(record, replace=True)