Add docs about grouping via action

Mention this in the docs for gtk_check_button_set_group
and gtk_toggle_button_set_group.
This commit is contained in:
Matthias Clasen 2020-09-01 15:31:24 -04:00
parent 5f8769e1a8
commit 639c839ba4
2 changed files with 13 additions and 1 deletions

View File

@ -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,

View File

@ -446,6 +446,12 @@ gtk_toggle_button_toggled (GtkToggleButton *toggle_button)
*
* Adds @self to the group of @group. In a group of multiple toggle buttons,
* only one button can be active at a time.
*
* 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_toggle_button_set_group (GtkToggleButton *self,