summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2008-06-03 23:32:04 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-06-03 23:32:04 +0000
commite8b29ce05be743bb695959fc7f5fa6ccbc69fbe9 (patch)
treec88dd42ddb3d673fdc9cbb5d70d33bcdb7cc6beb /giscanner/girwriter.py
parent6b52e768cce135b576fd0ebee5e0531310ef42f4 (diff)
downloadgobject-introspection-e8b29ce05be743bb695959fc7f5fa6ccbc69fbe9.tar.gz
Improve enum member parsing and introspection
2008-06-03 Johan Dahlin <jdahlin@async.com.br> * giscanner/Makefile.am: * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/glibast.py: * giscanner/glibtransformer.py: * giscanner/transformer.py: * giscanner/utils.py: * tests/parser/Foo-expected.gir: Improve enum member parsing and introspection svn path=/trunk/; revision=283
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 8d17fade..f26373b3 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -147,7 +147,8 @@ class GIRWriter(XMLWriter):
def _write_member(self, member):
attrs = [('name', member.name),
- ('value', str(member.value))]
+ ('value', str(member.value)),
+ ('c:identifier', member.symbol)]
if isinstance(member, GLibEnumMember):
attrs.append(('glib:nick', member.nick))
self.write_tag('member', attrs)