summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckbutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-01 15:31:24 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-09-01 16:29:21 -0400
commit639c839ba4e17379235dcf57dfdc4a750a6b809d (patch)
treeb10a0a4f409be66a364b43d1afa65d3ed774f9bc /gtk/gtkcheckbutton.c
parent5f8769e1a82dc0fd01c2af99c8d2d6d77fb23cb9 (diff)
downloadgtk+-639c839ba4e17379235dcf57dfdc4a750a6b809d.tar.gz
Add docs about grouping via action
Mention this in the docs for gtk_check_button_set_group and gtk_toggle_button_set_group.
Diffstat (limited to 'gtk/gtkcheckbutton.c')
-rw-r--r--gtk/gtkcheckbutton.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index a3d02f9ee5..ab7a862779 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -802,7 +802,13 @@ gtk_check_button_set_label (GtkCheckButton *self,
* Setting the group of a check button also changes the css name of the
* indicator widget's CSS node to 'radio'.
*
- * The behavior of a checkbutton in a group is also commonly known as a 'radio button'.
+ * The behavior of a checkbutton in a group is also commonly known as
+ * a 'radio button'.
+ *
+ * Note that the same effect can be achieved via the #GtkActionable
+ * api, by using the same action with parameter type and state type 's'
+ * for all buttons in the group, and giving each button its own target
+ * value.
*/
void
gtk_check_button_set_group (GtkCheckButton *self,