Gtk.RecentAction.new_for_manager

function new_for_manager(name:String, label:String, tooltip:String, stock_id:String, manager:Gtk.RecentManager):Gtk.Action {
    // Gjs wrapper for gtk_recent_action_new_for_manager()
}

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

manager

a Gtk.RecentManager, or null for using the default Gtk.RecentManager

Returns

the newly created Gtk.RecentAction