summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-08-03 13:01:35 -0400
committerColin Walters <walters@verbum.org>2010-08-31 16:05:56 -0400
commitabc4e514ff46ed77159b19f56dea54eeef8bc909 (patch)
treec72971e270139c35739b651bb91b35bf2b66b783 /giscanner/girwriter.py
parentf58c9cd835c6e5077496ea4abf18ecd8907c3288 (diff)
downloadgobject-introspection-abc4e514ff46ed77159b19f56dea54eeef8bc909.tar.gz
Move alias target to <type>
This makes type parsing more uniform. Delete the typedef for GSList in foo.h - that's not supported anymore, or at least for now.
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 2e0a6cdc..0f621251 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -153,10 +153,11 @@ and/or use gtk-doc annotations. ''')
attrs.append(('throws', '1'))
def _write_alias(self, alias):
- attrs = [('name', alias.name), ('target', alias.target)]
+ attrs = [('name', alias.name)]
if alias.ctype is not None:
attrs.append(('c:type', alias.ctype))
- self.write_tag('alias', attrs)
+ with self.tagcontext('alias', attrs):
+ self._write_type(alias.target)
def _write_callable(self, callable, tag_name, extra_attrs):
attrs = [('name', callable.name)]