From 1020622b48f685398b72eddce585cf7487a167fc Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 26 Nov 2009 11:43:42 +0000 Subject: 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 --- giscanner/glibtransformer.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'giscanner') 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) -- cgit v1.2.1