Package: gtk

Function gtk:radio-action-join-group

Lambda List

gtk:radio-action-join-group (action source)

Arguments

action -- a gtk:radio-action object
source -- a gtk:radio-action object whose group we are joining, or nil to remove the radio action from its group

Details

Joins a radio action object to the group of another radio action object. Use this in language bindings instead of the the gtk:radio-action-group function.

Examples

A common way to set up a group of radio actions is the following:
(let ((actions '(("action0" "label" "tooltip" "stock-id" 0)
                 ...
                )
      (lastaction nil))
   (dolist (action actions)
     (setf action (apply #'gtk:radio-action-new action))
     (gtk:radio-action-join-group action lastaction)
     (setf lastaction action))
     ... ))    

Warning

The gtk:radio-action-join-group function has been deprecated since version 3.10 and should not be used in newly written code.
 

See also

2024-9-26