[gtk/ebassi/gidocgen: 169/500] orientable: Add property annotations




commit 3fd3187d8ff663fe1733139c3b2773d6e8114a78
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 24 21:57:30 2021 -0500

    orientable: Add property annotations
    
    Connect properties, getters, and setters with annotations.

 gtk/gtkorientable.c | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/gtk/gtkorientable.c b/gtk/gtkorientable.c
index a37e7bd18a..67496ce38a 100644
--- a/gtk/gtkorientable.c
+++ b/gtk/gtkorientable.c
@@ -30,14 +30,13 @@
 
 
 /**
- * SECTION:gtkorientable
- * @Short_description: An interface for flippable widgets
- * @Title: GtkOrientable
+ * GtkOrientable:
  *
- * The #GtkOrientable interface is implemented by all widgets that can be
- * oriented horizontally or vertically. #GtkOrientable is more flexible in that
- * it allows the orientation to be changed at runtime, allowing the widgets
- * to “flip”.
+ * The `GtkOrientable` interface is implemented by all widgets that can be
+ * oriented horizontally or vertically.
+ *
+ * `GtkOrientable` is more flexible in that it allows the orientation to be
+ * changed at runtime, allowing the widgets to “flip”.
  */
 
 
@@ -48,7 +47,7 @@ static void
 gtk_orientable_default_init (GtkOrientableInterface *iface)
 {
   /**
-   * GtkOrientable:orientation:
+   * GtkOrientable:orientation: (attributes org.gtk.Property.get=gtk_orientable_get_orientation 
org.gtk.Property.set=gtk_orientable_set_orientation)
    *
    * The orientation of the orientable.
    **/
@@ -62,12 +61,12 @@ gtk_orientable_default_init (GtkOrientableInterface *iface)
 }
 
 /**
- * gtk_orientable_set_orientation:
- * @orientable: a #GtkOrientable
+ * gtk_orientable_set_orientation: (attributes org.gtk.Method.set_property=orientation)
+ * @orientable: a `GtkOrientable`
  * @orientation: the orientable’s new orientation.
  *
  * Sets the orientation of the @orientable.
- **/
+ */
 void
 gtk_orientable_set_orientation (GtkOrientable  *orientable,
                                 GtkOrientation  orientation)
@@ -83,13 +82,13 @@ gtk_orientable_set_orientation (GtkOrientable  *orientable,
 }
 
 /**
- * gtk_orientable_get_orientation:
- * @orientable: a #GtkOrientable
+ * gtk_orientable_get_orientation: (attributes org.gtk.Method.get_property=orientation)
+ * @orientable: a `GtkOrientable`
  *
  * Retrieves the orientation of the @orientable.
  *
  * Returns: the orientation of the @orientable.
- **/
+ */
 GtkOrientation
 gtk_orientable_get_orientation (GtkOrientable *orientable)
 {


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