[gtk/ebassi/gidocgen: 183/200] scale: Add property annotations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/gidocgen: 183/200] scale: Add property annotations
- Date: Thu, 25 Feb 2021 13:08:24 +0000 (UTC)
commit a80f3804d934ff02a5067a64d5f7d2f1042970f9
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 24 21:57:55 2021 -0500
scale: Add property annotations
Connect properties, getters, and setters with annotations.
gtk/gtkscale.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 2d443ef2ee..59c80371d1 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -674,7 +674,7 @@ gtk_scale_class_init (GtkScaleClass *class)
class->get_layout_offsets = gtk_scale_real_get_layout_offsets;
/**
- * GtkScale:digits:
+ * GtkScale:digits: (attributes org.gtk.Method.get=gtk_scale_get_digits
org.gtk.Method.set=gtk_scale_set_digits)
*
* The number of decimal places that are displayed in the value.
*/
@@ -687,7 +687,7 @@ gtk_scale_class_init (GtkScaleClass *class)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
/**
- * GtkScale:draw-value:
+ * GtkScale:draw-value: (attributes org.gtk.Method.get=gtk_scale_get_draw_value
org.gtk.Method.set=gtk_scale_set_draw_value)
*
* Whether the current value is displayed as a string next to the slider.
*/
@@ -699,7 +699,7 @@ gtk_scale_class_init (GtkScaleClass *class)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
/**
- * GtkScale:has-origin:
+ * GtkScale:has-origin: (attributes org.gtk.Method.get=gtk_scale_get_has_origin
org.gtk.Method.set=gtk_scale_set_has_origin)
*
* Whether the scale has an origin.
*/
@@ -711,7 +711,7 @@ gtk_scale_class_init (GtkScaleClass *class)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
/**
- * GtkScale:value-pos:
+ * GtkScale:value-pos: (attributes org.gtk.Method.get=gtk_scale_get_value_pos
org.gtk.Method.set=gtk_scale_set_value_pos)
*
* The position in which the current value is displayed.
*/
@@ -1001,7 +1001,7 @@ gtk_scale_new_with_range (GtkOrientation orientation,
}
/**
- * gtk_scale_set_digits:
+ * gtk_scale_set_digits: (attributes org.gtk.Method.set_property=digits)
* @scale: a `GtkScale`
* @digits: the number of decimal places to display,
* e.g. use 1 to display 1.0, 2 to display 1.00, etc
@@ -1045,7 +1045,7 @@ gtk_scale_set_digits (GtkScale *scale,
}
/**
- * gtk_scale_get_digits:
+ * gtk_scale_get_digits: (attributes org.gtk.Method.get_property=digits)
* @scale: a `GtkScale`
*
* Gets the number of decimal places that are displayed in the value.
@@ -1096,7 +1096,7 @@ update_value_position (GtkScale *scale)
}
/**
- * gtk_scale_set_draw_value:
+ * gtk_scale_set_draw_value: (attributes org.gtk.Method.set_property=draw-value)
* @scale: a #GtkScale
* @draw_value: %TRUE to draw the value
*
@@ -1145,7 +1145,7 @@ gtk_scale_set_draw_value (GtkScale *scale,
}
/**
- * gtk_scale_get_draw_value:
+ * gtk_scale_get_draw_value: (attributes org.gtk.Method.get_property=draw-value)
* @scale: a `GtkScale`
*
* Returns whether the current value is displayed as a string
@@ -1164,7 +1164,7 @@ gtk_scale_get_draw_value (GtkScale *scale)
}
/**
- * gtk_scale_set_has_origin:
+ * gtk_scale_set_has_origin: (attributes org.gtk.Method.set_property=has-origin)
* @scale: a `GtkScale`
* @has_origin: %TRUE if the scale has an origin
*
@@ -1193,7 +1193,7 @@ gtk_scale_set_has_origin (GtkScale *scale,
}
/**
- * gtk_scale_get_has_origin:
+ * gtk_scale_get_has_origin: (attributes org.gtk.Method.get_property=has-origin)
* @scale: a `GtkScale`
*
* Returns whether the scale has an origin.
@@ -1209,7 +1209,7 @@ gtk_scale_get_has_origin (GtkScale *scale)
}
/**
- * gtk_scale_set_value_pos:
+ * gtk_scale_set_value_pos: (attributes org.gtk.Method.set_property=value-pos)
* @scale: a `GtkScale`
* @pos: the position in which the current value is displayed
*
@@ -1235,7 +1235,7 @@ gtk_scale_set_value_pos (GtkScale *scale,
}
/**
- * gtk_scale_get_value_pos:
+ * gtk_scale_get_value_pos: (attributes org.gtk.Method.get_property=value-pos)
* @scale: a `GtkScale`
*
* Gets the position in which the current value is displayed.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]