[gobject-introspection/ebassi/property-annotation: 10/19] Document the new property accessors annotations




commit 9ddf6c5bf81296f27a6f7db9b5f98460761e40c3
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]