summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-06-17 14:17:04 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-08-05 17:47:29 +0100
commita2067865807b26be8667574a564e942409121256 (patch)
tree6a29aff2d11fcfd44977601597e23d2d1128acbc
parent382430dc4d1a409a118aa9914aa002e2f7762434 (diff)
downloadgobject-introspection-a2067865807b26be8667574a564e942409121256.tar.gz
Document the new property accessors annotations
-rw-r--r--docs/gir-1.2.rnc4
-rw-r--r--docs/website/annotations/giannotations.rst8
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/gir-1.2.rnc b/docs/gir-1.2.rnc
index 0170d987..4244532e 100644
--- a/docs/gir-1.2.rnc
+++ b/docs/gir-1.2.rnc
@@ -347,6 +347,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