[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.4" ) ]
public Action (string name, string? label, string? tooltip, string? stock_id)
Creates a new Action object.
Use Action instead, associating it to a widget with Actionable or creating a Menu with Menu.from_model
To add the action to a ActionGroup and set the accelerator for the action, call add_action_with_accel. See the UI Definition section for information on allowed action names.
name |
A unique name for the action |
label |
the label displayed in menu items and on buttons, or null |
tooltip |
a tooltip for the action, or null |
stock_id |
the stock icon to display in widgets representing the action, or null |
a new Action |