InitiallyUnownedClass should contain all the fields as ObjectClass if we want offset...
authorTomeu Vizoso <tomeu@sugarlabs.org>
Thu, 26 Nov 2009 11:43:42 +0000 (11:43 +0000)
committerTomeu Vizoso <tomeu@sugarlabs.org>
Mon, 30 Nov 2009 16:17:34 +0000 (16:17 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=603038

giscanner/glibtransformer.py

index c58644b..158f8e8 100644 (file)
@@ -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)