summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2011-08-14 14:17:33 +0200
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2011-08-14 14:17:33 +0200
commitd858bff0aa4471a85891b8dedffe5c009ef38d6b (patch)
tree23fef3c5a76544956f5f6b167c1068a367c69dd0
parent21a8a702c46968d40cfc99a5b57f9801568eda21 (diff)
downloadgobject-introspection-d858bff0aa4471a85891b8dedffe5c009ef38d6b.tar.gz
g-ir-doc-tool: Use the array type when rendering [element-type]
-rw-r--r--giscanner/docbookwriter.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/giscanner/docbookwriter.py b/giscanner/docbookwriter.py
index 882f6dd7..5a70e518 100644
--- a/giscanner/docbookwriter.py
+++ b/giscanner/docbookwriter.py
@@ -164,7 +164,11 @@ class DocBookFormatter(object):
if hasattr(argument.type, 'element_type') and \
argument.type.element_type is not None:
- annotations['element-type'] = argument.type.element_type
+ if isinstance(argument.type.element_type, ast.Array):
+ element_type = argument.type.element_type.array_type
+ else:
+ element_type = argument.type.element_type
+ annotations['element-type'] = element_type
if argument.transfer is not None and argument.transfer != 'none':
annotations['transfer'] = argument.transfer