ToggleAction


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.4" ) ]
public ToggleAction (string name, string? label, string? tooltip, string? stock_id)

Creates a new ToggleAction object.

To add the action to a ActionGroup and set the accelerator for the action, call add_action_with_accel.

Parameters:

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

Returns:

a new ToggleAction




2022 vala-language.org