summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-06-23 19:12:18 +0100
committerEmmanuele Bassi <ebassi@gmail.com>2022-02-12 15:27:38 +0000
commit59a77cc7a96e34aa0d49b8c82f647115a8286a56 (patch)
tree8f696c73d427e5a2001132e704c48abf50fd14b1 /giscanner/girwriter.py
parent9cbcd6dd958c090d967a6e74f8fd5e130cf173b8 (diff)
downloadgobject-introspection-59a77cc7a96e34aa0d49b8c82f647115a8286a56.tar.gz
scanner: Add (emitter) annotation for signals
Signals that have an emitter function should have an annotation to allow consumers of the introspection XML to effectively pair signals to their corresponding emitter functions that share the same prototype.
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 9a315145..9ff10d31 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -674,6 +674,8 @@ class GIRWriter(XMLWriter):
attrs.append(('action', '1'))
if signal.no_hooks:
attrs.append(('no-hooks', '1'))
+ if signal.emitter:
+ attrs.append(('emitter', signal.emitter))
self._append_version(signal, attrs)
self._append_node_generic(signal, attrs)