Class: Gtk::RecentChooserMenu

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#newGtk::Widget

Creates a new Gtk::RecentChooserMenu widget.

This kind of widget shows the list of recently used resources as a menu, each item as a menu item. Each item inside the menu might have an icon, representing its MIME type, and a number, for mnemonic access.

This widget implements the Gtk::RecentChooser interface.

This widget creates its own Gtk::RecentManager object. See the gtk_recent_chooser_menu_new_for_manager() function to know how to create a Gtk::RecentChooserMenu widget bound to another #GtkRecentManager object.

Returns:

#new_for_manager(manager) ⇒ Gtk::Widget

Creates a new Gtk::RecentChooserMenu widget using manager as the underlying recently used resources manager.

This is useful if you have implemented your own recent manager, or if you have a customized instance of a Gtk::RecentManager object or if you wish to share a common Gtk::RecentManager object among multiple Gtk::RecentChooser widgets.

Parameters:

Returns:

  • (Gtk::Widget)

    a new Gtk::RecentChooserMenu, bound to manager.

#show_numbersTrueClass

Returns the value set by gtk_recent_chooser_menu_set_show_numbers().

Returns:

  • (TrueClass)

    true if numbers should be shown.

#show_numbers=(show_numbers) ⇒ TrueClass

Whether the first ten items in the menu should be prepended by a number acting as a unique mnemonic.

Parameters:

  • show_numbers (TrueClass)

Returns:

  • (TrueClass)

    show-numbers

  • (TrueClass)

    show-numbers

#show_numbers?TrueClass

Whether the first ten items in the menu should be prepended by a number acting as a unique mnemonic.

Returns:

  • (TrueClass)

    show-numbers