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 callback function on-change and the accel paths of the actions are set to <Actions>/group-name/action-name. Example
(let ((group (gtk-action-group-new "AppWindowActions"))
(actions (list
(list "Red" nil ; name, stock id
"_Red" "<control>R" ; label, accelerator
"Blood" 0) ; tooltip, value
(list "Green" nil ; name, stock id
"_Green" "<control>G" ; label, accelerator
"Grass" 1) ; tooltip, value
(list "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 |
*2021-12-18