[gobject-introspection/ebassi/property-annotation: 15/24] Document the new property accessors annotations




commit a2067865807b26be8667574a564e942409121256
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 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]