gtkcheckbutton: Document how to keep track of changes for radio buttons

This commit is contained in:
Pablo Correa Gómez 2022-12-13 23:58:55 +01:00
parent c2c99a163a
commit 42ba97eb5c

View File

@ -77,6 +77,11 @@
*
* To add a `GtkCheckButton` to a group, use [method@Gtk.CheckButton.set_group].
*
* When the code must keep track of the state of a group of radio buttons, it
* is recommended to keep track of such state through a stateful
* `GAction` with a target for each button. Using the `toggled` signals to keep
* track of the group changes and state is discouraged.
*
* # CSS nodes
*
* ```