Gtk.RecentAction.new

function new(name:String, label:String, tooltip:String, stock_id:String):Gtk.Action {
    // Gjs wrapper for gtk_recent_action_new()
}

Creates a new Gtk.RecentAction 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.12

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

the newly created Gtk.RecentAction.