Gtk.ToggleAction.new
function new(name:String, label:String, tooltip:String, stock_id:String):Gtk.ToggleAction {
// Gjs wrapper for gtk_toggle_action_new()
}Creates a new Gtk.ToggleAction object. To add the action to a Gtk.ActionGroup and set the accelerator for the action, call Gtk.ActionGroup.prototype.add_action_with_accel.
Since 2.4
- 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 Gtk.ToggleAction