summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
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 58eeccd0..389c05fa 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -118,7 +118,7 @@ class GIRWriter(XMLWriter):
# FIXME: figure out if type references a basic type
# or a boxed/class/interface etc. and skip
# writing the ctype if the latter.
- if 1:
+ if type.ctype is not None:
attrs.append(('c:type', type.ctype))
self.write_tag('type', attrs)