RecentAction.newForManager

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.

class RecentAction
static
newForManager
(
string name
,
string label = null
,
string tooltip = null
,
string stockId = null
,)

Parameters

name string

a unique name for the action

label string

the label displayed in menu items and on buttons, or null

tooltip string

a tooltip for the action, or null

stockId string

the stock icon to display in widgets representing the action, or null

manager gtk.recent_manager.RecentManager

a #GtkRecentManager, or null for using the default #GtkRecentManager

Return Value

Type: gtk.recent_action.RecentAction

the newly created #GtkRecentAction