summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2012-08-28 00:11:40 +0200
committerGiovanni Campagna <gcampagna@src.gnome.org>2012-10-28 18:41:04 +0100
commitd893890d1098953d6740d5c8114d278b6d9875fc (patch)
tree495d4ba5656a19725f6c8b65f03599d4614cc509 /giscanner/girwriter.py
parentb7e230a61b9f9682c5ee433e24cfb749cec8c9c5 (diff)
downloadgobject-introspection-d893890d1098953d6740d5c8114d278b6d9875fc.tar.gz
Add documentation for enumeration members
Enum members were Annotated in the AST, and most code already assumed they could have docs. What was missing was reading the docs from the comment blocks and writing them in the XML. https://bugzilla.gnome.org/show_bug.cgi?id=683046
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 97f81616..7344488b 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -363,7 +363,8 @@ and/or use gtk-doc annotations. ''')
('c:identifier', member.symbol)]
if member.nick is not None:
attrs.append(('glib:nick', member.nick))
- self.write_tag('member', attrs)
+ with self.tagcontext('member', attrs):
+ self._write_generic(member)
def _write_constant(self, constant):
attrs = [('name', constant.name),