diff options
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/girwriter.py | 2 | ||||
-rw-r--r-- | giscanner/transformer.py | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index f637376f..4bef1eaf 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -276,7 +276,7 @@ class GIRWriter(XMLWriter): assert isinstance(ntype, ast.Type), ntype attrs = [] if ntype.ctype: - attrs.append(('c:type', ntype.ctype)) + attrs.append(('c:type', ntype.complete_ctype or ntype.ctype)) if isinstance(ntype, ast.Array): if ntype.array_type != ast.Array.C: attrs.insert(0, ('name', ntype.array_type)) diff --git a/giscanner/transformer.py b/giscanner/transformer.py index a1ea3433..81b4d0ae 100644 --- a/giscanner/transformer.py +++ b/giscanner/transformer.py @@ -613,12 +613,7 @@ raise ValueError.""" CTYPE_BASIC_TYPE, CTYPE_VOID): name = self.strip_identifier(symbol.ident) - if symbol.base_type.name: - complete_ctype = self._create_complete_source_type(symbol.base_type) - target = self.create_type_from_ctype_string(symbol.base_type.name, - complete_ctype=complete_ctype) - else: - target = ast.TYPE_ANY + target = self._create_type_from_base(symbol.base_type) if name in ast.type_names: return None # https://bugzilla.gnome.org/show_bug.cgi?id=755882 |