gtk.recent_chooser_menu

Module for RecentChooserMenu class

Types 3

#GtkRecentChooserMenu is a widget suitable for displaying recently used files inside a menu. It can be used to set a sub-menu of a #GtkMenuItem using gtk.menu_item.MenuItem.setSubmenu, or as the menu of a #GtkMenuToolButton.

Note that #GtkRecentChooserMenu does not have any methods of its own. Instead, you should use the functions that work on a #GtkRecentChooser.

Note also that #GtkRecentChooserMenu does not support multiple filters, as it has no way to let the user choose between them as the #GtkRecentChooserWidget and #GtkRecentChooserDialog widgets do. Thus using gtk.recent_chooser.RecentChooser.addFilter on a #GtkRecentChooserMenu widget will yield the same effects as using gtk.recent_chooser.RecentChooser.setFilter, replacing any currently set filter with the supplied filter; gtk.recent_chooser.RecentChooser.removeFilter will remove any currently set #GtkRecentFilter object and will unset the current filter; gtk.recent_chooser.RecentChooser.listFilters will return a list containing a single #GtkRecentFilter object.

Recently used files are supported since GTK+ 2.10.

Methods
GType _gType() @property
RecentChooserMenu self()Returns `this`, for use in `with` statements.
RecentChooserMenuGidBuilder builder()Get builder for [gtk.recent_chooser_menu.RecentChooserMenu] Returns: New builder object
bool showNumbers() @propertyGet `showNumbers` property. Returns: Whether the first ten items in the menu should be prepended by a number acting as a unique mnemonic.
void showNumbers(bool propval) @propertySet `showNumbers` property. Params: propval = Whether the first ten items in the menu should be prepended by a number acting as a unique mnemonic.
gtk.recent_chooser_menu.RecentChooserMenu newForManager(gtk.recent_manager.RecentManager manager)Creates a new #GtkRecentChooserMenu widget using manager as the underlying recently used resources manager.
bool getShowNumbers()Returns the value set by [gtk.recent_chooser_menu.RecentChooserMenu.setShowNumbers]. Returns: true if numbers should be shown.
void setShowNumbers(bool showNumbers)Sets whether a number should be added to the items of menu. The numbers are shown to provide a unique character for a mnemonic to be used inside ten menu item’s label. Only the first the items ...
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GtkRecentChooserMenu widget.

Fluent builder implementation template for gtk.recent_chooser_menu.RecentChooserMenu

Methods
T showNumbers(bool propval)Set `showNumbers` property. Params: propval = Whether the first ten items in the menu should be prepended by a number acting as a unique mnemonic. Returns: Builder instance for fluent chaining