summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2017-03-13 03:37:50 +0100
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2017-03-14 17:43:45 +0100
commitdf019eb0c5d82d44effcf9e1b0666a7b813ef5eb (patch)
treeec5af959bedae18302686d181079c6f5d8c8c669 /giscanner/girwriter.py
parent0ac1f1862850ab003de70344491ed3385b610e98 (diff)
downloadgobject-introspection-df019eb0c5d82d44effcf9e1b0666a7b813ef5eb.tar.gz
typedefs: fix type information.
We now reuse _create_type_from_base instead of reimplementing it in a semi-broken way in transformer, and use complete_ctype when writing it out if available. This incidentally allows us to remove a test where the comment acknowledged the non-optimal behaviour. https://bugzilla.gnome.org/show_bug.cgi?id=779959
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py2
1 files changed, 1 insertions, 1 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))