[gtk/ebassi/gidocgen: 166/471] togglebutton: Add property annotations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/gidocgen: 166/471] togglebutton: Add property annotations
- Date: Mon, 8 Mar 2021 18:23:18 +0000 (UTC)
commit d4d2f7990427fa5b8cec8df2d159e78cab47a6c7
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 25 10:10:12 2021 -0500
togglebutton: Add property annotations
Connect properties, getters, and setters with annotations
gtk/gtktogglebutton.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c
index 3320ef0005..6ae96fc8af 100644
--- a/gtk/gtktogglebutton.c
+++ b/gtk/gtktogglebutton.c
@@ -264,7 +264,7 @@ gtk_toggle_button_class_init (GtkToggleButtonClass *class)
class->toggled = NULL;
/**
- * GtkToggleButton:active:
+ * GtkToggleButton:active: (attributes org.gtk.Property.get=gtk_toggle_button_get_active
org.gtk.Property.set=gtk_toggle_button_set_active)
*
* If the toggle button should be pressed in.
*/
@@ -276,7 +276,7 @@ gtk_toggle_button_class_init (GtkToggleButtonClass *class)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
/**
- * GtkToggleButton:group:
+ * GtkToggleButton:group: (attributes org.gtk.Property.set=gtk_toggle_button_set_group)
*
* The toggle button whose group this widget belongs to.
*/
@@ -369,7 +369,7 @@ gtk_toggle_button_new_with_mnemonic (const char *label)
}
/**
- * gtk_toggle_button_set_active:
+ * gtk_toggle_button_set_active: (attributes org.gtk.Method.set_property=active)
* @toggle_button: a `GtkToggleButton`.
* @is_active: %TRUE or %FALSE.
*
@@ -426,7 +426,7 @@ gtk_toggle_button_set_active (GtkToggleButton *toggle_button,
}
/**
- * gtk_toggle_button_get_active:
+ * gtk_toggle_button_get_active: (attributes org.gtk.Method.get_property=active)
* @toggle_button: a `GtkToggleButton`.
*
* Queries a `GtkToggleButton` and returns its current state.
@@ -463,7 +463,7 @@ gtk_toggle_button_toggled (GtkToggleButton *toggle_button)
}
/**
- * gtk_toggle_button_set_group:
+ * gtk_toggle_button_set_group: (attributes org.gtk.Method.set_property=group)
* @toggle_button: a `GtkToggleButton`
* @group: (nullable) (transfer none): another `GtkToggleButton` to
* form a group with
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]