From: Johan Dahlin Date: Tue, 22 Jun 2010 12:47:26 +0000 (-0300) Subject: [annotationparser] Reuse method for determining array type X-Git-Tag: GOBJECT_INTROSPECTION_0_9_0~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d161b5ac2e8c7aa1d22eadb47fc2381fadd8ba1;p=platform%2Fupstream%2Fgobject-introspection.git [annotationparser] Reuse method for determining array type --- diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index bea8773..43ca03c 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: