RecentAction.newForManager

gtk.recent_action.RecentAction newForManager(string name, string label = null, string tooltip = null, string stockId = null, gtk.recent_manager.RecentManager manager = null)

Creates a new #GtkRecentAction object. To add the action to a #GtkActionGroup and set the accelerator for the action, call [gtk.action_group.ActionGroup.addActionWithAccel].

Parameters

namea unique name for the action
labelthe label displayed in menu items and on buttons, or null
tooltipa tooltip for the action, or null
stockIdthe stock icon to display in widgets representing the action, or null
managera #GtkRecentManager, or null for using the default #GtkRecentManager

Returns

the newly created #GtkRecentAction