diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-02-25 12:23:50 -0500 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-03-11 16:37:33 +0000 |
commit | e4054d62feb161bc83a84f896550149d16c3e643 (patch) | |
tree | 70092f359a4c1efb752c9f5f3faab439df3a16aa /gtk/gtkswitch.c | |
parent | 37855e2b53caf0e8791f2e68d25a5e2a336534a8 (diff) | |
download | gtk+-e4054d62feb161bc83a84f896550149d16c3e643.tar.gz |
switch: Add property annotations
Connect properties, getters, and setters with annotations
Diffstat (limited to 'gtk/gtkswitch.c')
-rw-r--r-- | gtk/gtkswitch.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c index 61ba44dc62..f2d3b92aa8 100644 --- a/gtk/gtkswitch.c +++ b/gtk/gtkswitch.c @@ -513,7 +513,7 @@ gtk_switch_class_init (GtkSwitchClass *klass) GObjectClass *gobject_class = G_OBJECT_CLASS (klass); /** - * GtkSwitch:active: + * GtkSwitch:active: (attributes org.gtk.Property.get=gtk_switch_get_active org.gtk.Property.set=gtk_switch_set_active) * * Whether the `GtkSwitch` widget is in its on or off state. */ @@ -525,7 +525,7 @@ gtk_switch_class_init (GtkSwitchClass *klass) GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY); /** - * GtkSwitch:state: + * GtkSwitch:state: (attributes org.gtk.Property.get=gtk_switch_get_state org.gtk.Property.set=gtk_switch_set_state) * * The backend state that is controlled by the switch. * @@ -685,7 +685,7 @@ gtk_switch_new (void) } /** - * gtk_switch_set_active: + * gtk_switch_set_active: (attributes org.gtk.Method.set_property=active) * @self: a `GtkSwitch` * @is_active: %TRUE if @self should be active, and %FALSE otherwise * @@ -725,7 +725,7 @@ gtk_switch_set_active (GtkSwitch *self, } /** - * gtk_switch_get_active: + * gtk_switch_get_active: (attributes org.gtk.Method.get_property=active) * @self: a `GtkSwitch` * * Gets whether the `GtkSwitch` is in its “on” or “off” state. @@ -741,7 +741,7 @@ gtk_switch_get_active (GtkSwitch *self) } /** - * gtk_switch_set_state: + * gtk_switch_set_state: (attributes org.gtk.Method.set_property=state) * @self: a `GtkSwitch` * @state: the new state * @@ -781,7 +781,7 @@ gtk_switch_set_state (GtkSwitch *self, } /** - * gtk_switch_get_state: + * gtk_switch_get_state: (attributes org.gtk.Method.get_property=state) * @self: a `GtkSwitch` * * Gets the underlying state of the `GtkSwitch`. |