diff options
Diffstat (limited to 'giscanner/annotationparser.py')
-rw-r--r-- | giscanner/annotationparser.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index 3480ac78..f70bfa45 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -605,6 +605,12 @@ class AnnotationApplier(object): has_element_type = OPT_ELEMENT_TYPE in options has_array = OPT_ARRAY in options + if not has_array: + has_array = \ + node.type.name in ['GLib.Array', 'GLib.PtrArray', + 'GLib.ByteArray'] or \ + node.type.ctype in ['GArray*', 'GPtrArray*', 'GByteArray*'] + # FIXME: This is a hack :-( if (not isinstance(node, Field) and (not has_element_type and |