Gtk::RecentChooserMenu Class Reference
[RecentFiles]
Inheritance diagram for Gtk::RecentChooserMenu:

Detailed Description
RecentChooserMenu is a widget suitable for displaying recently used files inside a menu.It can be used to set a sub-menu of a MenuItem using MenuItem::item_set_submenu(), or as the menu of a MenuToolButton.
Note that RecentChooserMenu does not have any methods of its own. Instead, you should use the functions that work on a RecentChooser.
Public Member Functions | |
bool | get_show_numbers () const |
Return value: true if numbers should be shown. | |
const GtkRecentChooserMenu* | gobj () const |
Provides access to the underlying C GtkObject. | |
GtkRecentChooserMenu* | gobj () |
Provides access to the underlying C GtkObject. | |
RecentChooserMenu (const Glib::RefPtr<RecentManager>& recent_manager) | |
RecentChooserMenu () | |
void | set_show_numbers (bool show_numbers=true) |
Sets whether a number should be added to the items of menu. | |
virtual | ~RecentChooserMenu () |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::RecentChooserMenu* | wrap (GtkRecentChooserMenu* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
Constructor & Destructor Documentation
virtual Gtk::RecentChooserMenu::~RecentChooserMenu | ( | ) | [virtual] |
Gtk::RecentChooserMenu::RecentChooserMenu | ( | ) |
Gtk::RecentChooserMenu::RecentChooserMenu | ( | const Glib::RefPtr<RecentManager>& | recent_manager | ) | [explicit] |
Member Function Documentation
bool Gtk::RecentChooserMenu::get_show_numbers | ( | ) | const |
Return value: true
if numbers should be shown.
- Returns:
true
if numbers should be shown.
const GtkRecentChooserMenu* Gtk::RecentChooserMenu::gobj | ( | ) | const [inline] |
GtkRecentChooserMenu* Gtk::RecentChooserMenu::gobj | ( | ) | [inline] |
void Gtk::RecentChooserMenu::set_show_numbers | ( | bool | show_numbers = true |
) |
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.
- Parameters:
-
show_numbers Whether to show numbers.
Friends And Related Function Documentation
Gtk::RecentChooserMenu* wrap | ( | GtkRecentChooserMenu * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
- Parameters:
-
object The C instance. take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
- Returns:
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file: