summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-20 17:44:09 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-20 18:54:42 -0300
commit8398ce7b33dd9b6866795998d60e9bc7bb7090e2 (patch)
tree5f6350087bf890d3e43d472829d2e3cd8a6ca8e8 /giscanner/girwriter.py
parent635b6ec35fbb1c2355e9b8b336f1a9164cc44034 (diff)
downloadgobject-introspection-8398ce7b33dd9b6866795998d60e9bc7bb7090e2.tar.gz
[scanner] Support private/public directives
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=594125
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 80e1719a..43dbd26c 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -513,6 +513,8 @@ and/or use gtk-doc annotations. ''')
attrs.append(('writable', '1'))
if field.bits:
attrs.append(('bits', str(field.bits)))
+ if field.private:
+ attrs.append(('private', '1'))
with self.tagcontext('field', attrs):
self._write_generic(field)
self._write_type(field.type)