summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2008-06-05 11:45:46 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-06-05 11:45:46 +0000
commit4bd7483b630c9efc3ac509d241fd8a4946e1ee4d (patch)
treec12f8e6bfc9d44f72e0942887ec1f6c04d6b9916 /giscanner/girwriter.py
parentecd9197acc471fcb4dba6d06ff51e49972a83710 (diff)
downloadgobject-introspection-4bd7483b630c9efc3ac509d241fd8a4946e1ee4d.tar.gz
Use <type> element for field types Update testcase
2008-06-05 Jürg Billeter <j@bitron.ch> * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/transformer.py: Use <type> element for field types * tests/parser/Foo-expected.gir: Update testcase svn path=/trunk/; revision=285
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index f26373b3..58eeccd0 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -218,9 +218,9 @@ class GIRWriter(XMLWriter):
self._write_callback(field)
return
- attrs = [('name', field.name),
- ('value', str(field.value))]
- self.write_tag('field', attrs)
+ attrs = [('name', field.name)]
+ with self.tagcontext('field', attrs):
+ self._write_type(field.type)
def _write_signal(self, signal):
attrs = [('name', signal.name)]