Gtk.Action.new
function new(name:String, label:String, tooltip:String, stock_id:String):Gtk.Action {
// Gjs wrapper for gtk_action_new()
}Creates a new Gtk.Action object. To add the action to a Gtk.ActionGroup and set the accelerator for the action, call Gtk.add_action_with_accel. See <xref linkend="XML-UI"/> for information on allowed action names.
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.Action