Package: gtk
Function gtk:action-group-add-radio-actions
Lambda Listgtk:action-group-add-radio-actions (group entries value on-change) ArgumentsDetails
This is a convenience function to create a group of radio actions and add
them to the action group. The "changed" signal of the first radio action is connected to the on-change callback function and the accel paths of the actions are set to <Actions>/group-name/action-name. Examples
(let ((group (gtk:action-group-new "AppWindowActions"))
(actions '(("Red" nil ; name, stock id
"_Red" "<control>R" ; label, accelerator
"Blood" 0) ; tooltip, value
("Green" nil ; name, stock id
"_Green" "<control>G" ; label, accelerator
"Grass" 1) ; tooltip, value
("Blue" nil ; name, stock id
"_Blue" "<control>B" ; label, accelerator
"Sky" 2))))
(gtk:action-group-add-radio-actions group actions 0 nil)
... ) Warning | See also |
2025-07-02