diff options
author | Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> | 2017-03-13 03:37:50 +0100 |
---|---|---|
committer | Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> | 2017-03-14 17:43:45 +0100 |
commit | df019eb0c5d82d44effcf9e1b0666a7b813ef5eb (patch) | |
tree | ec5af959bedae18302686d181079c6f5d8c8c669 /giscanner/girwriter.py | |
parent | 0ac1f1862850ab003de70344491ed3385b610e98 (diff) | |
download | gobject-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.py | 2 |
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)) |