diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2008-06-03 23:32:04 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-06-03 23:32:04 +0000 |
commit | e8b29ce05be743bb695959fc7f5fa6ccbc69fbe9 (patch) | |
tree | c88dd42ddb3d673fdc9cbb5d70d33bcdb7cc6beb /giscanner/girwriter.py | |
parent | 6b52e768cce135b576fd0ebee5e0531310ef42f4 (diff) | |
download | gobject-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.py | 3 |
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) |