diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2021-06-23 19:12:18 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2022-02-12 15:27:38 +0000 |
commit | 59a77cc7a96e34aa0d49b8c82f647115a8286a56 (patch) | |
tree | 8f696c73d427e5a2001132e704c48abf50fd14b1 /docs | |
parent | 9cbcd6dd958c090d967a6e74f8fd5e130cf173b8 (diff) | |
download | gobject-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 'docs')
-rw-r--r-- | docs/gir-1.2.rnc | 2 | ||||
-rw-r--r-- | docs/website/annotations/giannotations.rst | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/gir-1.2.rnc b/docs/gir-1.2.rnc index a4943108..f7b1cd15 100644 --- a/docs/gir-1.2.rnc +++ b/docs/gir-1.2.rnc @@ -374,6 +374,8 @@ grammar { attribute no-hooks { "0" | "1" }?, ## Binary attribute, true if signals emitted for an object while currently being in emission for this very object will not be emitted recursively, but instead cause the first emission to be restarted (https://docs.gtk.org/gobject/flags.SignalFlags.html) attribute no-recurse { "0" | "1" }?, + ## The emitter method for the signal + attribute emitter { xsd:string }?, # Other elements a signal can contain (Info.elements diff --git a/docs/website/annotations/giannotations.rst b/docs/website/annotations/giannotations.rst index 7ed1a7cf..3e4bfa92 100644 --- a/docs/website/annotations/giannotations.rst +++ b/docs/website/annotations/giannotations.rst @@ -125,6 +125,10 @@ Support for GObject objects called by the ``GObjectClass.get_property`` implementation in a class. - :issue:`13` + * - ``(emitter METHOD)`` + - identifier (only applies to methods) + - This signal is emitted by the given method + - Support for GObject closures |