gtk.recent_action

Module for [RecentAction] class

Types 3

A #GtkRecentAction represents a list of recently used files, which can be shown by widgets such as #GtkRecentChooserDialog or #GtkRecentChooserMenu.

To construct a submenu showing recently used files, use a #GtkRecentAction as the action for a <menuitem>. To construct a menu toolbutton showing the recently used files in the popup menu, use a #GtkRecentAction as the action for a <toolitem> element.

Methods
GType _gType() @property
RecentAction self()Returns `this`, for use in `with` statements.
RecentActionGidBuilder builder()Get builder for [gtk.recent_action.RecentAction] Returns: New builder object
bool showNumbers() @propertyGet `showNumbers` property. Returns: Whether the items should be displayed with a number.
void showNumbers(bool propval) @propertySet `showNumbers` property. Params: propval = Whether the items should be displayed with a number.
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].
bool getShowNumbers()Returns the value set by [gtk.recentchoosermenu.RecentChooserMenu.setShowNumbers]. Returns: true if numbers should be shown.
void setShowNumbers(bool showNumbers)Sets whether a number should be added to the items shown by the widgets representing action. The numbers are shown to provide a unique character for a mnemonic to be used inside the menu item's lab...
Constructors
this(void * ptr, Flag!"Take" take)
this(string name, string label = null, string tooltip = null, string stockId = 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].
Methods
T showNumbers(bool propval)Set `showNumbers` property. Params: propval = Whether the items should be displayed with a number. Returns: Builder instance for fluent chaining

Fluent builder for [gtk.recent_action.RecentAction]