[gobject-introspection] InitiallyUnownedClass should contain all the fields as ObjectClass if we want offset counting to be



commit 1020622b48f685398b72eddce585cf7487a167fc
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date:   Thu Nov 26 11:43:42 2009 +0000

    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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/glibtransformer.py b/giscanner/glibtransformer.py
index c58644b..158f8e8 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]