summaryrefslogtreecommitdiff
path: root/giscanner/annotationparser.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-06-22 09:47:26 -0300
committerJohan Dahlin <johan@gnome.org>2010-06-22 09:48:06 -0300
commit7d161b5ac2e8c7aa1d22eadb47fc2381fadd8ba1 (patch)
treedcffc8db474fcc567307c7461979f5ad1c0ae1b9 /giscanner/annotationparser.py
parentc6a1f0446e6854c81ebeae12baa4debb0655f9be (diff)
downloadgobject-introspection-7d161b5ac2e8c7aa1d22eadb47fc2381fadd8ba1.tar.gz
[annotationparser] Reuse method for determining array type
Diffstat (limited to 'giscanner/annotationparser.py')
-rw-r--r--giscanner/annotationparser.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index bea87737..43ca03c4 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -713,9 +713,7 @@ class AnnotationApplier(object):
else:
array_values = {}
- is_g_array = (node.type.ctype.startswith('GArray*') or
- node.type.ctype.startswith('GPtrArray*') or
- node.type.ctype.startswith('GByteArray*'))
+ is_g_array = self._is_array_type(node)
element_type = options.get(OPT_ELEMENT_TYPE)
if element_type is not None: