summaryrefslogtreecommitdiff
path: root/giscanner/transformer.py
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2008-09-29 19:03:42 +0000
committerColin Walters <walters@src.gnome.org>2008-09-29 19:03:42 +0000
commitd2465ce9ccefc6921eb5b3558b7db18f87a4f867 (patch)
tree94238b2d22c5857b7a26febb80c572cb227195df /giscanner/transformer.py
parentf57644958f16bf4b16f79d0cb0fade343d30a9ba (diff)
downloadgobject-introspection-d2465ce9ccefc6921eb5b3558b7db18f87a4f867.tar.gz
Also use name as ctype name for resolving array components
svn path=/trunk/; revision=636
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r--giscanner/transformer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 7aa709c6..ef17af92 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -313,7 +313,7 @@ class Transformer(object):
def _parse_and_resolve_ctype(self, ctype):
canonical = type_name_from_ctype(ctype)
derefed = canonical.replace('*', '')
- return self.resolve_type_name(derefed)
+ return self.resolve_type_name(derefed, derefed)
def _create_type(self, source_type, options=[]):
ctype = self._create_source_type(source_type)
@@ -348,7 +348,7 @@ class Transformer(object):
options.remove('array')
derefed = ctype[:-1] # strip the *
return Array(None, ctype,
- type_name_from_ctype(derefed))
+ self._parse_and_resolve_ctype(derefed))
resolved_type_name = self._parse_and_resolve_ctype(ctype)
return Type(resolved_type_name, ctype)