Gtk.RecentAction¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Action (42), GObject.Object (37), Gtk.Buildable (10), Gtk.RecentChooser (31)
- Structs:
class |
|
class |
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
Whether the items should be displayed with a number |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gtk.RecentAction(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Gtk.RecentActionrepresents a list of recently used files, which can be shown by widgets such asGtk.RecentChooserDialogorGtk.RecentChooserMenu.To construct a submenu showing recently used files, use a
Gtk.RecentActionas the action for a<menuitem>. To construct a menu toolbutton showing the recently used files in the popup menu, use aGtk.RecentActionas the action for a<toolitem>element.- classmethod new(name, label, tooltip, stock_id)[source]¶
- Parameters:
- Returns:
the newly created
Gtk.RecentAction.- Return type:
Creates a new
Gtk.RecentActionobject. To add the action to aGtk.ActionGroupand set the accelerator for the action, callGtk.ActionGroup.add_action_with_accel().New in version 2.12.
Deprecated since version 3.10.
- classmethod new_for_manager(name, label, tooltip, stock_id, manager)[source]¶
- Parameters:
name (
str) – a unique name for the actionlabel (
strorNone) – the label displayed in menu items and on buttons, orNonestock_id (
strorNone) – the stock icon to display in widgets representing the action, orNonemanager (
Gtk.RecentManagerorNone) – aGtk.RecentManager, orNonefor using the defaultGtk.RecentManager
- Returns:
the newly created
Gtk.RecentAction- Return type:
Creates a new
Gtk.RecentActionobject. To add the action to aGtk.ActionGroupand set the accelerator for the action, callGtk.ActionGroup.add_action_with_accel().New in version 2.12.
Deprecated since version 3.10.
- get_show_numbers()[source]¶
-
Returns the value set by
Gtk.RecentChooserMenu.set_show_numbers().New in version 2.12.
Deprecated since version 3.10.
- set_show_numbers(show_numbers)[source]¶
-
Sets whether a number should be added to the items shown by the widgets representing self. The numbers are shown to provide a unique character for a mnemonic to be used inside the menu item’s label. Only the first ten items get a number to avoid clashes.
New in version 2.12.
Deprecated since version 3.10.