Package: gtk

Accessor gtk:check-button-group

Lambda List

gtk:check-button-group (object)

Syntax

(setf (gtk:check-button-group object) group)

Arguments

object -- a gtk:check-button widget
group -- a gtk:check-button widget

Details

Accessor of the group slot of the gtk:check-button class. Adds the check button to the group of group. In a group of multiple check buttons, only one button can be active at a time.

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 check button in a group is also commonly known as a "radio button".

Note that the same effect can be achieved via the gtk:actionable API, by using the same action with parameter type and "s" state type for all buttons in the group, and giving each button its own target value.
 

See also

2024-5-4