Package: gtk

Function gtk:radio-action-new

Lambda List

gtk:radio-action-new (name &optional label tooltip stock-id value)

Arguments

name -- a string with the unique name for the action
label -- a string with the label displayed in menu items and on buttons, or nil
tooltip -- a string with the tooltip for this action, or nil
stock-id -- a string with the stock icon to display in widgets representing this action, or nil
value -- an integer with the value which the gtk:radio-action-current-value function should return if this action is selected

Return Value

The new gtk:radio-action object.

Details

Creates a new radio action. To add the action to a gtk-action-group object and set the accelerator for the action, call the gtk-action-group-add-action function.

Warning

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

See also

2024-9-26