diff options
author | Johan Dahlin <jdahlin@litl.com> | 2011-08-13 11:21:05 -0300 |
---|---|---|
committer | Johan Dahlin <jdahlin@litl.com> | 2011-08-13 11:21:05 -0300 |
commit | d7a2b1dc90bd61bcd0908c3fd8b124bb84ecc862 (patch) | |
tree | d151b1c18fdc4e334515f66725ecd8e853b6b00a /giscanner/girwriter.py | |
parent | 0d76fc0c49bbe4f1b0d1490e8e41d02db7c4bf4a (diff) | |
download | gobject-introspection-d7a2b1dc90bd61bcd0908c3fd8b124bb84ecc862.tar.gz |
Add signal flags
This adds all GSignalFlags into the gir.
https://bugzilla.gnome.org/show_bug.cgi?id=656457
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r-- | giscanner/girwriter.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index ce173fd4..591c7aea 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -554,7 +554,17 @@ and/or use gtk-doc annotations. ''') self._write_type(field.type) def _write_signal(self, signal): - attrs = [('name', signal.name)] + attrs = [('name', signal.name), + ('when', signal.when)] + if signal.no_recurse: + attrs.append(('no-recurse', '1')) + if signal.detailed: + attrs.append(('detailed', '1')) + if signal.action: + attrs.append(('action', '1')) + if signal.no_hooks: + attrs.append(('no-hooks', '1')) + self._append_version(signal, attrs) self._append_node_generic(signal, attrs) with self.tagcontext('glib:signal', attrs): |