[gobject-introspection/gir-docbook-2] g-ir-doc-tool: Use the array type when rendering [element-type]



commit d858bff0aa4471a85891b8dedffe5c009ef38d6b
Author: Tomeu Vizoso <tomeu vizoso collabora co uk>
Date:   Sun Aug 14 14:17:33 2011 +0200

    g-ir-doc-tool: Use the array type when rendering [element-type]

 giscanner/docbookwriter.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/docbookwriter.py b/giscanner/docbookwriter.py
index 882f6dd..5a70e51 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]