Top |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkMenuShell ╰── GtkMenu ╰── GtkRecentChooserMenu
GtkRecentChooserMenu implements AtkImplementorIface, GtkBuildable, GtkRecentChooser and GtkActivatable.
GtkWidget *
gtk_recent_chooser_menu_new (void
);
Creates a new GtkRecentChooserMenu 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 GtkRecentChooser interface.
This widget creates its own GtkRecentManager object. See the
gtk_recent_chooser_menu_new_for_manager()
function to know how to create
a GtkRecentChooserMenu widget bound to another GtkRecentManager object.
Since: 2.10
GtkWidget *
gtk_recent_chooser_menu_new_for_manager
(GtkRecentManager *manager
);
Creates a new GtkRecentChooserMenu 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 GtkRecentManager object or if you wish to share a common GtkRecentManager object among multiple GtkRecentChooser widgets.
Since: 2.10
gboolean
gtk_recent_chooser_menu_get_show_numbers
(GtkRecentChooserMenu *menu
);
Returns the value set by gtk_recent_chooser_menu_set_show_numbers()
.
Since: 2.10
void gtk_recent_chooser_menu_set_show_numbers (GtkRecentChooserMenu *menu
,gboolean show_numbers
);
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
get a number to avoid clashes.
Since: 2.10
“show-numbers”
property “show-numbers” gboolean
Whether the first ten items in the menu should be prepended by a number acting as a unique mnemonic.
Owner: GtkRecentChooserMenu
Flags: Read / Write
Default value: FALSE
Since: 2.10