summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2008-10-25 15:20:54 +0000
committerColin Walters <walters@src.gnome.org>2008-10-25 15:20:54 +0000
commitd15f8cde47100a77189d5febb8704c0e4d736594 (patch)
tree651b1c0990dbf5ec99c77139e1a648aca63d5ec5 /giscanner/girwriter.py
parentc7d2a0712f6301aa670f87a98e8f217bf3c54a7a (diff)
downloadgobject-introspection-d15f8cde47100a77189d5febb8704c0e4d736594.tar.gz
Bug 557786 - support fixed size arrays
svn path=/trunk/; revision=814
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 5c8aa12b..3de71bcd 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -176,6 +176,8 @@ class GIRWriter(XMLWriter):
if ntype.length_param_index >= 0:
attrs.append(('length', '%d' % (ntype.length_param_index, )))
attrs.append(('c:type', ntype.ctype))
+ if ntype.size is not None:
+ attrs.append(('fixed-size', ntype.size))
with self.tagcontext('array', attrs):
self._write_type(ntype.element_type)
return