Package: gtk

Function gtk:action-new

Lambda List

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

Arguments

name -- a string with a unique name for the action
label -- an optional string with the label displayed in menu items and on buttons, or nil
tooltip -- an optional string with a tooltip for the action, or nil
stock-id -- an optional string with the stock icon to display in widgets representing the action, or nil

Return Value

The new gtk:action object.

Details

Creates a new 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:action-new function has been deprecated since version 3.10 and should not be used in newly written code. Use the g:action interface instead, associating it to a widget with the gtk:actionable interface or creating a gtk:menu widget with the gtk:menu-new-from-model function.
 

See also

2024-9-26