[gobject-introspection/ebassi/property-annotation: 4/4] docs: Add the new accessors annotations




commit 8199b314592cd97c812ec4acfb25f017cc1fa215
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Jun 16 19:31:11 2021 +0100

    docs: Add the new accessors annotations
    
    Mention them in the annotations list, and add the new attributes to the
    GIR schema.

 docs/gir-1.2.rnc                           | 5 +++++
 docs/website/annotations/giannotations.rst | 8 ++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/docs/gir-1.2.rnc b/docs/gir-1.2.rnc
index a6478119..633d0fec 100644
--- a/docs/gir-1.2.rnc
+++ b/docs/gir-1.2.rnc
@@ -591,6 +591,11 @@ grammar {
     element method {
       Callable.attrs,
 
+      ## The GObject property that is set by this method
+      attribute glib:set-property { xsd:string }?,
+      ## The GObject property that is retrieved by this method
+      attribute glib:get-property { xsd:string }?,
+
       (Info.elements
        & Callable.params?
        & Callable.return?)
diff --git a/docs/website/annotations/giannotations.rst b/docs/website/annotations/giannotations.rst
index cacc20de..70534c92 100644
--- a/docs/website/annotations/giannotations.rst
+++ b/docs/website/annotations/giannotations.rst
@@ -97,6 +97,14 @@ Support for GObject objects
     - This function is the invoker for a virtual method.
     - :commit:`v0.6.3 <fdbe3cc3>`
       :bzbug:`557383`
+  * - ``(set-property NAME)``
+    - identifier
+    - This function is a setter method for the given GObject property.
+    - :issue:`13`
+  * - ``(get-property NAME)``
+    - identifier
+    - This function is a getter method for the given GObject property.
+    - :issue:`13`
 
 
 Support for GObject closures


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