diff options
author | Johan Dahlin <johan@gnome.org> | 2011-02-01 16:14:00 -0200 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2011-02-01 16:38:42 -0200 |
commit | ed5437545efbf4e86833e1c632de76f30bb4ea52 (patch) | |
tree | 4fb352472dba63693e27bdc23260e06d0fd32dfc /giscanner/maintransformer.py | |
parent | d79670b1bf45bdb51635c9775d29b1c34ea18110 (diff) | |
download | gobject-introspection-ed5437545efbf4e86833e1c632de76f30bb4ea52.tar.gz |
Preserve gtk-doc section names
Preserve the section names and write them out on the class/record/
interface.
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r-- | giscanner/maintransformer.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index 893b3b71..1fcf5e81 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -217,6 +217,11 @@ usage is void (*_gtk_reserved1)(void);""" block = self._get_block(node) for field in node.fields: self._apply_annotations_field(node, block, field) + name = self._get_annotation_name(node) + section_name = 'SECTION:' + name.lower() + block = self._blocks.get(section_name) + if block: + node.doc = block.comment if isinstance(node, (ast.Class, ast.Interface)): for prop in node.properties: self._apply_annotations_property(node, prop) |