[gobject-introspection/ebassi/property-annotation: 10/17] Document the new property accessors annotations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/ebassi/property-annotation: 10/17] Document the new property accessors annotations
- Date: Tue, 27 Jul 2021 10:45:31 +0000 (UTC)
commit 8da2f78c2a53889b693fd858789b6b0454db61a4
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Jun 17 14:17:04 2021 +0100
Document the new property accessors annotations
docs/gir-1.2.rnc | 4 ++++
docs/website/annotations/giannotations.rst | 8 ++++++++
2 files changed, 12 insertions(+)
---
diff --git a/docs/gir-1.2.rnc b/docs/gir-1.2.rnc
index be9ea311..abdf11dd 100644
--- a/docs/gir-1.2.rnc
+++ b/docs/gir-1.2.rnc
@@ -345,6 +345,10 @@ grammar {
attribute construct { "0" | "1" }?,
## Binary attribute, true if the property can only be set upon construction
attribute construct-only { "0" | "1" }?,
+ ## The setter function for this property
+ attribute setter { xsd:string }?,
+ ## The getter function for this property
+ attribute getter { xsd:string }?,
# Define the transfer of ownership of the property element
TransferOwnership?,
diff --git a/docs/website/annotations/giannotations.rst b/docs/website/annotations/giannotations.rst
index 70534c92..10582739 100644
--- a/docs/website/annotations/giannotations.rst
+++ b/docs/website/annotations/giannotations.rst
@@ -105,6 +105,14 @@ Support for GObject objects
- identifier
- This function is a getter method for the given GObject property.
- :issue:`13`
+ * - ``(setter SYMBOL)``
+ - identifier
+ - This GObject property is accessed by the given setter function
+ - :issue:`13`
+ * - ``(getter SYMBOL)``
+ - identifier
+ - This GObject property is accessed by the given getter function
+ - :issue:`13`
Support for GObject closures
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]