[gtk/ebassi/gidocgen: 2/5] levelbar: Add property annotations




commit abda561943b958a60ea74bbf0e45a9902d1daaa3
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 23 23:00:55 2021 -0500

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

 gtk/gtklevelbar.c | 34 ++++++++++++++++------------------
 1 file changed, 16 insertions(+), 18 deletions(-)
---
diff --git a/gtk/gtklevelbar.c b/gtk/gtklevelbar.c
index f34dd111d9..7bc98fa57c 100644
--- a/gtk/gtklevelbar.c
+++ b/gtk/gtklevelbar.c
@@ -19,9 +19,7 @@
  */
 
 /**
- * SECTION:gtklevelbar
- * @Title: GtkLevelBar
- * @Short_description: A bar that can used as a level indicator
+ * GtkLevelBar:
  *
  * The `GtkLevelBar` is a bar widget that can be used
  * as a level indicator. Typical use cases are displaying the strength
@@ -937,7 +935,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
                   1, G_TYPE_STRING);
 
   /**
-   * GtkLevelBar:value:
+   * GtkLevelBar:value: (attributes org.gtk.Property.get=gtk_levelbar_get_value 
org.gtk.Property.set=gtk_levelbar_set_value)
    *
    * Determines the currently filled value of the level bar.
    */
@@ -949,7 +947,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
                          G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkLevelBar:min-value:
+   * GtkLevelBar:min-value: (attributes org.gtk.Property.get=gtk_level_bar_get_min_value 
org.gtk.Property.set=gtk_level_bar_set_min_value)
    *
    * Determines the minimum value of the interval that can be displayed by the bar.
    */
@@ -961,7 +959,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
                          G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkLevelBar:max-value:
+   * GtkLevelBar:max-value: (attributes org.gtk.Property.get=gtk_level_bar_get_max_value 
org.gtk.Property.set=gtk_level_bar_set_max_value)
    *
    * Determines the maximum value of the interval that can be displayed by the bar.
    */
@@ -973,7 +971,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
                          G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkLevelBar:mode:
+   * GtkLevelBar:mode: (attributes org.gtk.Property.get=gtk_level_bar_get_mode 
org.gtk.Property.set=gtk_level_bar_set_mode)
    *
    * Determines the way `GtkLevelBar` interprets the value properties to draw the
    * level fill area.
@@ -995,7 +993,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
                        G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkLevelBar:inverted:
+   * GtkLevelBar:inverted: (attributes org.gtk.Property.get=gtk_level_bar_get_inverted 
org.gtk.Property.set=gtk_level_bar_set_inverted)
    *
    * Whether the `GtkLeveBar` is inverted.
    *
@@ -1090,7 +1088,7 @@ gtk_level_bar_new_for_interval (double min_value,
 }
 
 /**
- * gtk_level_bar_get_min_value:
+ * gtk_level_bar_get_min_value: (attributes org.gtk.Method.get_property=min-value)
  * @self: a `GtkLevelBar`
  *
  * Returns the `min-value of the `GtkLevelBar`.
@@ -1106,7 +1104,7 @@ gtk_level_bar_get_min_value (GtkLevelBar *self)
 }
 
 /**
- * gtk_level_bar_get_max_value:
+ * gtk_level_bar_get_max_value: (attributes org.gtk.Method.get_property=max-value)
  * @self: a `GtkLevelBar`
  *
  * Returns the `max-value` of the `GtkLevelBar`.
@@ -1122,7 +1120,7 @@ gtk_level_bar_get_max_value (GtkLevelBar *self)
 }
 
 /**
- * gtk_level_bar_get_value:
+ * gtk_level_bar_get_value: (attributes org.gtk.Method.get_property=value)
  * @self: a `GtkLevelBar`
  *
  * Returns the `value` of the `GtkLevelBar`.
@@ -1150,7 +1148,7 @@ gtk_level_bar_set_value_internal (GtkLevelBar *self,
 }
 
 /**
- * gtk_level_bar_set_min_value:
+ * gtk_level_bar_set_min_value: (attributes org.gtk.Method.set_property=min-value)
  * @self: a `GtkLevelBar`
  * @value: a positive value
  *
@@ -1186,7 +1184,7 @@ gtk_level_bar_set_min_value (GtkLevelBar *self,
 }
 
 /**
- * gtk_level_bar_set_max_value:
+ * gtk_level_bar_set_max_value: (attributes org.gtk.Method.set_property=max-value)
  * @self: a `GtkLevelBar`
  * @value: a positive value
  *
@@ -1223,7 +1221,7 @@ gtk_level_bar_set_max_value (GtkLevelBar *self,
 }
 
 /**
- * gtk_level_bar_set_value:
+ * gtk_level_bar_set_value: (attributes org.gtk.Method.set_property=value)
  * @self: a `GtkLevelBar`
  * @value: a value in the interval between
  *     [property@Gtk.LevelBar:min-value] and [property@Gtk.LevelBar:max-value]
@@ -1248,7 +1246,7 @@ gtk_level_bar_set_value (GtkLevelBar *self,
 }
 
 /**
- * gtk_level_bar_get_mode:
+ * gtk_level_bar_get_mode: (attributes org.gtk.Method.get_property=mode)
  * @self: a `GtkLevelBar`
  *
  * Returns the `mode` of the `GtkLevelBar`.
@@ -1264,7 +1262,7 @@ gtk_level_bar_get_mode (GtkLevelBar *self)
 }
 
 /**
- * gtk_level_bar_set_mode:
+ * gtk_level_bar_set_mode: (attributes org.gtk.Method.set_property=mode)
  * @self: a `GtkLevelBar`
  * @mode: a `GtkLevelBarMode`
  *
@@ -1290,7 +1288,7 @@ gtk_level_bar_set_mode (GtkLevelBar     *self,
 }
 
 /**
- * gtk_level_bar_get_inverted:
+ * gtk_level_bar_get_inverted: (attributes org.gtk.Method.get_property=inverted)
  * @self: a `GtkLevelBar`
  *
  * Returns whether the levelbar is inverted.
@@ -1306,7 +1304,7 @@ gtk_level_bar_get_inverted (GtkLevelBar *self)
 }
 
 /**
- * gtk_level_bar_set_inverted:
+ * gtk_level_bar_set_inverted: (attributes org.gtk.Method.set_property=inverted)
  * @self: a `GtkLevelBar`
  * @inverted: %TRUE to invert the level bar
  *


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