gtkmm 3.24.7
Public Member Functions | Static Public Member Functions | Protected Member Functions | Related Functions | List of all members
Gtk::RecentAction Class Reference

A deprecated action of which represents a list of recently used files. More...

#include <gtkmm/recentaction.h>

Inheritance diagram for Gtk::RecentAction:
Inheritance graph
[legend]

Public Member Functions

 RecentAction (RecentAction && src) noexcept
 
RecentActionoperator= (RecentAction && src) noexcept
 
 ~RecentAction () noexcept override
 
GtkRecentAction * gobj ()
 Provides access to the underlying C GObject. More...
 
const GtkRecentAction * gobj () const
 Provides access to the underlying C GObject. More...
 
GtkRecentAction * gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
bool get_show_numbers ()
 Returns the value set by Gtk::RecentChooserMenu::set_show_numbers(). More...
 
void set_show_numbers (bool show_numbers=true)
 Sets whether a number should be added to the items shown by the widgets representing action. More...
 
Glib::PropertyProxy< bool > property_show_numbers ()
 Whether the items should be displayed with a number. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_show_numbers () const
 Whether the items should be displayed with a number. More...
 
- Public Member Functions inherited from Gtk::Action
 Action (Action && src) noexcept
 
Actionoperator= (Action && src) noexcept
 
 ~Action () noexcept override
 
GtkAction * gobj ()
 Provides access to the underlying C GObject. More...
 
const GtkAction * gobj () const
 Provides access to the underlying C GObject. More...
 
GtkAction * gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
Glib::ustring get_name () const
 Returns the name of the action. More...
 
bool is_sensitive () const
 Returns whether the action is effectively sensitive. More...
 
bool get_sensitive () const
 Returns whether the action itself is sensitive. More...
 
void set_sensitive (bool sensitive=true)
 Sets the :sensitive property of the action to sensitive. More...
 
bool is_visible () const
 Returns whether the action is effectively visible. More...
 
bool get_visible () const
 Returns whether the action itself is visible. More...
 
void set_visible (bool visible=true)
 Sets the :visible property of the action to visible. More...
 
void activate ()
 Emits the “activate” signal on the specified action, if it isn't insensitive. More...
 
Imagecreate_icon (IconSize icon_size)
 This function is intended for use by action implementations to create icons displayed in the proxy widgets. More...
 
MenuItemcreate_menu_item ()
 Creates a menu item widget that proxies for the given action. More...
 
ToolItemcreate_tool_item ()
 Creates a toolbar item widget that proxies for the given action. More...
 
Menucreate_menu ()
 If action provides a Gtk::Menu widget as a submenu for the menu item or the toolbar item it creates, this function returns an instance of that menu. More...
 
std::vector< Widget * > get_proxies ()
 Returns the proxy widgets for an action. More...
 
std::vector< const Widget * > get_proxies () const
 Returns the proxy widgets for an action. More...
 
void connect_accelerator ()
 Installs the accelerator for action if action has an accel path and group. More...
 
void disconnect_accelerator ()
 Undoes the effect of one call to connect_accelerator(). More...
 
Glib::ustring get_accel_path () const
 Returns the accel path for this action. More...
 
Glib::SignalProxy< void > signal_activate ()
 
void set_accel_path (const Glib::ustring & accel_path)
 Sets the accel path for this action. More...
 
void set_accel_group (const Glib::RefPtr< AccelGroup > & accel_group)
 Sets the Gtk::AccelGroup in which the accelerator for this action will be installed. More...
 
void set_label (const Glib::ustring & label)
 Sets the label of action. More...
 
Glib::ustring get_label () const
 Gets the label text of action. More...
 
void set_short_label (const Glib::ustring & short_label)
 Sets a shorter label text on action. More...
 
Glib::ustring get_short_label () const
 Gets the short label text of action. More...
 
void set_tooltip (const Glib::ustring & tooltip)
 Sets the tooltip text on action. More...
 
Glib::ustring get_tooltip () const
 Gets the tooltip text of action. More...
 
void set_stock_id (const StockID & stock_id)
 Sets the stock id on action. More...
 
StockID get_stock_id () const
 Gets the stock id of action. More...
 
void set_gicon (const Glib::RefPtr< Gio::Icon > & icon)
 Sets the icon of action. More...
 
Glib::RefPtr< Gio::Icon > get_gicon ()
 Gets the gicon of action. More...
 
Glib::RefPtr< const Gio::Icon > get_gicon () const
 Gets the gicon of action. More...
 
void set_icon_name (const Glib::ustring & icon_name)
 Sets the icon name on action. More...
 
Glib::ustring get_icon_name () const
 Gets the icon name of action. More...
 
void set_visible_horizontal (bool visible_horizontal=true)
 Sets whether action is visible when horizontal. More...
 
bool get_visible_horizontal () const
 Checks whether action is visible when horizontal. More...
 
void set_visible_vertical (bool visible_vertical=true)
 Sets whether action is visible when vertical. More...
 
bool get_visible_vertical () const
 Checks whether action is visible when horizontal. More...
 
void set_is_important (bool is_important=true)
 Sets whether the action is important, this attribute is used primarily by toolbar items to decide whether to show a label or not. More...
 
bool get_is_important () const
 Checks whether action is important or not. More...
 
void set_always_show_image (bool always_show=true)
 Sets whether action's menu item proxies will ignore the Gtk::Settings::property_gtk_menu_images() setting and always show their image, if available. More...
 
bool get_always_show_image () const
 Returns whether action's menu item proxies will always show their image, if available. More...
 
void block_activate ()
 Disable activation signals from the action. More...
 
void unblock_activate ()
 Reenable activation signals from the action. More...
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_name () const
 A unique name for the action. More...
 
Glib::PropertyProxy< Glib::ustring > property_label ()
 The label used for menu items and buttons that activate this action. More...
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_label () const
 The label used for menu items and buttons that activate this action. More...
 
Glib::PropertyProxy< Glib::ustring > property_short_label ()
 A shorter label that may be used on toolbar buttons. More...
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_short_label () const
 A shorter label that may be used on toolbar buttons. More...
 
Glib::PropertyProxy< Glib::ustring > property_tooltip ()
 A tooltip for this action. More...
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_tooltip () const
 A tooltip for this action. More...
 
Glib::PropertyProxy< StockIDproperty_stock_id ()
 The stock icon displayed in widgets representing this action. More...
 
Glib::PropertyProxy_ReadOnly< StockIDproperty_stock_id () const
 The stock icon displayed in widgets representing this action. More...
 
Glib::PropertyProxy< Glib::RefPtr< Gio::Icon > > property_gicon ()
 The Gio::Icon displayed in the Gtk::Action. More...
 
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gio::Icon > > property_gicon () const
 The Gio::Icon displayed in the Gtk::Action. More...
 
Glib::PropertyProxy< Glib::ustring > property_icon_name ()
 The name of the icon from the icon theme. More...
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_icon_name () const
 The name of the icon from the icon theme. More...
 
Glib::PropertyProxy< bool > property_visible_horizontal ()
 Whether the toolbar item is visible when the toolbar is in a horizontal orientation. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_visible_horizontal () const
 Whether the toolbar item is visible when the toolbar is in a horizontal orientation. More...
 
Glib::PropertyProxy< bool > property_visible_vertical ()
 Whether the toolbar item is visible when the toolbar is in a vertical orientation. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_visible_vertical () const
 Whether the toolbar item is visible when the toolbar is in a vertical orientation. More...
 
Glib::PropertyProxy< bool > property_visible_overflown ()
 When true, toolitem proxies for this action are represented in the toolbar overflow menu. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_visible_overflown () const
 When true, toolitem proxies for this action are represented in the toolbar overflow menu. More...
 
Glib::PropertyProxy< bool > property_is_important ()
 Whether the action is considered important. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_is_important () const
 Whether the action is considered important. More...
 
Glib::PropertyProxy< bool > property_hide_if_empty ()
 When true, empty menu proxies for this action are hidden. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_hide_if_empty () const
 When true, empty menu proxies for this action are hidden. More...
 
Glib::PropertyProxy< bool > property_sensitive ()
 Whether the action is enabled. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_sensitive () const
 Whether the action is enabled. More...
 
Glib::PropertyProxy< bool > property_visible ()
 Whether the action is visible. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_visible () const
 Whether the action is visible. More...
 
Glib::PropertyProxy< Glib::RefPtr< ActionGroup > > property_action_group ()
 The GtkActionGroup this GtkAction is associated with, or nullptr (for internal use). More...
 
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< ActionGroup > > property_action_group () const
 The GtkActionGroup this GtkAction is associated with, or nullptr (for internal use). More...
 
Glib::PropertyProxy< bool > property_always_show_image ()
 If true, the action's menu item proxies will ignore the Gtk::Settings::property_gtk_menu_images() setting and always show their image, if available. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_always_show_image () const
 If true, the action's menu item proxies will ignore the Gtk::Settings::property_gtk_menu_images() setting and always show their image, if available. More...
 
- Public Member Functions inherited from Gtk::Buildable
 Buildable (Buildable && src) noexcept
 
Buildableoperator= (Buildable && src) noexcept
 
 ~Buildable () noexcept override
 
GtkBuildable * gobj ()
 Provides access to the underlying C GObject. More...
 
const GtkBuildable * gobj () const
 Provides access to the underlying C GObject. More...
 
void set_name (const Glib::ustring & name)
 Sets the name of the buildable object. More...
 
Glib::ustring get_name () const
 Gets the name of the buildable object. More...
 
- Public Member Functions inherited from Gtk::RecentChooser
 RecentChooser (RecentChooser && src) noexcept
 
RecentChooseroperator= (RecentChooser && src) noexcept
 
 ~RecentChooser () noexcept override
 
GtkRecentChooser * gobj ()
 Provides access to the underlying C GObject. More...
 
const GtkRecentChooser * gobj () const
 Provides access to the underlying C GObject. More...
 
void set_show_private (bool show_private=true)
 Whether to show recently used resources marked registered as private. More...
 
bool get_show_private () const
 Returns whether chooser should display recently used resources registered as private. More...
 
void set_show_not_found (bool show_not_found=true)
 Sets whether chooser should display the recently used resources that it didn’t find. More...
 
bool get_show_not_found () const
 Retrieves whether chooser should show the recently used resources that were not found. More...
 
void set_select_multiple (bool select_multiple=true)
 Sets whether chooser can select multiple items. More...
 
bool get_select_multiple () const
 Gets whether chooser can select multiple items. More...
 
void set_limit (int limit)
 Sets the number of items that should be returned by get_items() and get_uris(). More...
 
void unset_limit ()
 
int get_limit () const
 Gets the number of items returned by get_items() and get_uris(). More...
 
void set_local_only (bool local_only=true)
 Sets whether only local resources, that is resources using the file:// URI scheme, should be shown in the recently used resources selector. More...
 
bool get_local_only () const
 Gets whether only local resources should be shown in the recently used resources selector. More...
 
void set_show_tips (bool show_tips=true)
 Sets whether to show a tooltips containing the full path of each recently used resource in a Gtk::RecentChooser widget. More...
 
bool get_show_tips () const
 Gets whether chooser should display tooltips containing the full path of a recently user resource. More...
 
void set_show_icons (bool show_icons=true)
 Sets whether chooser should show an icon near the resource when displaying it. More...
 
bool get_show_icons () const
 Retrieves whether chooser should show an icon near the resource. More...
 
void set_sort_type (RecentSortType sort_type)
 Changes the sorting order of the recently used resources list displayed by chooser. More...
 
RecentSortType get_sort_type () const
 Gets the value set by set_sort_type(). More...
 
void set_sort_func (const SlotCompare & slot)
 Sets the comparison function used when sorting the list of recently used resources and the sort type is RECENT_SORT_CUSTOM. More...
 
bool set_current_uri (const Glib::ustring & uri)
 Sets uri as the current URI for chooser. More...
 
Glib::ustring get_current_uri () const
 Gets the URI currently selected by chooser. More...
 
Glib::RefPtr< RecentInfoget_current_item ()
 Gets the Gtk::RecentInfo currently selected by chooser. More...
 
Glib::RefPtr< const RecentInfoget_current_item () const
 Gets the Gtk::RecentInfo currently selected by chooser. More...
 
bool select_uri (const Glib::ustring & uri)
 Selects uri inside chooser. More...
 
void unselect_uri (const Glib::ustring & uri)
 Unselects uri inside chooser. More...
 
void select_all ()
 Selects all the items inside chooser, if the chooser supports multiple selection. More...
 
void unselect_all ()
 Unselects all the items inside chooser. More...
 
std::vector< Glib::RefPtr< RecentInfo > > get_items () const
 Gets the list of recently used resources in form of Gtk::RecentInfo objects. More...
 
std::vector< Glib::ustring > get_uris () const
 Gets the URI of the recently used resources. More...
 
void add_filter (const Glib::RefPtr< RecentFilter > & filter)
 Adds filter to the list of Gtk::RecentFilter objects held by chooser. More...
 
void remove_filter (const Glib::RefPtr< RecentFilter > & filter)
 Removes filter from the list of Gtk::RecentFilter objects held by chooser. More...
 
std::vector< Glib::RefPtr< RecentFilter > > list_filters ()
 Gets the Gtk::RecentFilter objects held by chooser. More...
 
std::vector< Glib::RefPtr< const RecentFilter > > list_filters () const
 Gets the Gtk::RecentFilter objects held by chooser. More...
 
void set_filter (const Glib::RefPtr< RecentFilter > & filter)
 Sets filter as the current Gtk::RecentFilter object used by chooser to affect the displayed recently used resources. More...
 
Glib::RefPtr< RecentFilterget_filter ()
 Gets the Gtk::RecentFilter object currently used by chooser to affect the display of the recently used resources. More...
 
Glib::RefPtr< const RecentFilterget_filter () const
 Gets the Gtk::RecentFilter object currently used by chooser to affect the display of the recently used resources. More...
 
Glib::SignalProxy< void > signal_selection_changed ()
 
Glib::SignalProxy< void > signal_item_activated ()
 
Glib::PropertyProxy< bool > property_show_private ()
 Whether the private items should be displayed. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_show_private () const
 Whether the private items should be displayed. More...
 
Glib::PropertyProxy< bool > property_show_tips ()
 Whether this Gtk::RecentChooser should display a tooltip containing the full path of the recently used resources. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_show_tips () const
 Whether this Gtk::RecentChooser should display a tooltip containing the full path of the recently used resources. More...
 
Glib::PropertyProxy< bool > property_show_icons ()
 Whether this Gtk::RecentChooser should display an icon near the item. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_show_icons () const
 Whether this Gtk::RecentChooser should display an icon near the item. More...
 
Glib::PropertyProxy< bool > property_show_not_found ()
 Whether this Gtk::RecentChooser should display the recently used resources even if not present anymore. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_show_not_found () const
 Whether this Gtk::RecentChooser should display the recently used resources even if not present anymore. More...
 
Glib::PropertyProxy< bool > property_select_multiple ()
 Allow the user to select multiple resources. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_select_multiple () const
 Allow the user to select multiple resources. More...
 
Glib::PropertyProxy< bool > property_local_only ()
 Whether this Gtk::RecentChooser should display only local (file:) resources. More...
 
Glib::PropertyProxy_ReadOnly< bool > property_local_only () const
 Whether this Gtk::RecentChooser should display only local (file:) resources. More...
 
Glib::PropertyProxy< int > property_limit ()
 The maximum number of recently used resources to be displayed, or -1 to display all items. More...
 
Glib::PropertyProxy_ReadOnly< int > property_limit () const
 The maximum number of recently used resources to be displayed, or -1 to display all items. More...
 
Glib::PropertyProxy< RecentSortTypeproperty_sort_type ()
 Sorting order to be used when displaying the recently used resources. More...
 
Glib::PropertyProxy_ReadOnly< RecentSortTypeproperty_sort_type () const
 Sorting order to be used when displaying the recently used resources. More...
 
Glib::PropertyProxy< Glib::RefPtr< RecentFilter > > property_filter ()
 The Gtk::RecentFilter object to be used when displaying the recently used resources. More...
 
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< RecentFilter > > property_filter () const
 The Gtk::RecentFilter object to be used when displaying the recently used resources. More...
 

Static Public Member Functions

static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...
 
static Glib::RefPtr< RecentActioncreate ()
 
static Glib::RefPtr< RecentActioncreate (const Glib::ustring & name, const Glib::ustring & label=Glib::ustring(), const Glib::ustring & tooltip=Glib::ustring())
 
static Glib::RefPtr< RecentActioncreate (const Glib::ustring & name, const Gtk::StockID & stock_id, const Glib::ustring & label=Glib::ustring(), const Glib::ustring & tooltip=Glib::ustring())
 
static Glib::RefPtr< RecentActioncreate (const Glib::ustring & name, const Gtk::StockID & stock_id, const Glib::ustring & label, const Glib::ustring & tooltip, const Glib::RefPtr< RecentManager > & recent_manager)
 
- Static Public Member Functions inherited from Gtk::Action
static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...
 
static Glib::RefPtr< Actioncreate ()
 
static Glib::RefPtr< Actioncreate (const Glib::ustring & name, const Glib::ustring & label=Glib::ustring(), const Glib::ustring & tooltip=Glib::ustring())
 Creates an action. More...
 
static Glib::RefPtr< Actioncreate (const Glib::ustring & name, const Gtk::StockID & stock_id, const Glib::ustring & label=Glib::ustring(), const Glib::ustring & tooltip=Glib::ustring())
 Creates an action with a stock ID. More...
 
static Glib::RefPtr< Actioncreate_with_icon_name (const Glib::ustring & name, const Glib::ustring & icon_name, const Glib::ustring & label, const Glib::ustring & tooltip)
 Create an action with an icon name. More...
 
- Static Public Member Functions inherited from Gtk::Buildable
static void add_interface (GType gtype_implementer)
 
static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...
 
- Static Public Member Functions inherited from Gtk::RecentChooser
static void add_interface (GType gtype_implementer)
 
static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...
 

Protected Member Functions

 RecentAction ()
 
 RecentAction (const Glib::ustring & name, const StockID & stock_id=StockID(), const Glib::ustring & label=Glib::ustring(), const Glib::ustring & tooltip=Glib::ustring())
 
 RecentAction (const Glib::ustring & name, const StockID & stock_id, const Glib::ustring & label, const Glib::ustring & tooltip, const Glib::RefPtr< RecentManager > & recent_manager)
 
- Protected Member Functions inherited from Gtk::Action
 Action ()
 Creates an empty action. More...
 
 Action (const Glib::ustring & name, const StockID & stock_id=StockID(), const Glib::ustring & label=Glib::ustring(), const Glib::ustring & tooltip=Glib::ustring())
 Creates an action with a stock ID. More...
 
 Action (const Glib::ustring & name, const Glib::ustring & icon_name, const Glib::ustring & label=Glib::ustring(), const Glib::ustring & tooltip=Glib::ustring())
 Creates an action with an icon name. More...
 
virtual Widgetcreate_menu_item_vfunc ()
 
virtual Widgetcreate_tool_item_vfunc ()
 
virtual void connect_proxy_vfunc (Widget * proxy)
 
virtual void disconnect_proxy_vfunc (Widget * proxy)
 
virtual void on_activate ()
 This is a default handler for the signal signal_activate(). More...
 
- Protected Member Functions inherited from Gtk::Buildable
 Buildable ()
 You should derive from this class to use it. More...
 
- Protected Member Functions inherited from Gtk::RecentChooser
 RecentChooser ()
 You should derive from this class to use it. More...
 
virtual Glib::ustring get_current_uri_vfunc () const
 
virtual void unselect_uri_vfunc (const Glib::ustring & uri)
 
virtual void select_all_vfunc ()
 
virtual void unselect_all_vfunc ()
 
virtual Glib::RefPtr< RecentManagerget_recent_manager_vfunc ()
 
virtual void add_filter_vfunc (const Glib::RefPtr< RecentFilter > & filter)
 
virtual void remove_filter_vfunc (const Glib::RefPtr< RecentFilter > & filter)
 
virtual void on_selection_changed ()
 This is a default handler for the signal signal_selection_changed(). More...
 
virtual void on_item_activated ()
 This is a default handler for the signal signal_item_activated(). More...
 

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gtk::RecentActionwrap (GtkRecentAction * object, bool take_copy=false)
 A Glib::wrap() method for this object. More...
 

Additional Inherited Members

- Public Types inherited from Gtk::Action
typedef sigc::slot< void > SlotActivate
 For instance, void on_activate();. More...
 
- Public Types inherited from Gtk::RecentChooser
typedef sigc::slot< int, const Glib::RefPtr< RecentInfo > &, const Glib::RefPtr< RecentInfo > & > SlotCompare
 This callback should return -1 if b compares before a, 0 if they compare equal and 1 if a compares after b. More...
 

Detailed Description

A deprecated action of which represents a list of recently used files.

A Gtk::RecentAction represents a list of recently used files, which can be shown by widgets such as Gtk::RecentChooserDialog or Gtk::RecentChooserMenu. To construct a submenu showing recently used files, use a Gtk::RecentAction as the action for a <menuitem>. To construct a menu toolbutton showing the recently used files in the popup menu, use a Gtk::RecentAction as the action for a <toolitem> element.

Since gtkmm 2.12:
Deprecated:
Use Gio::Action and Gio::SimpleAction instead, and associate actions with Gtk::Actionable widgets. Use Gio::MenuModel for creating menus with Gtk::Menu(const Glib::RefPtr<Gio::MenuModel>& model). See the Gtk::Action base class for more information about the deprecation.

Constructor & Destructor Documentation

◆ RecentAction() [1/4]

Gtk::RecentAction::RecentAction ( RecentAction &&  src)
noexcept

◆ ~RecentAction()

Gtk::RecentAction::~RecentAction ( )
overridenoexcept

◆ RecentAction() [2/4]

Gtk::RecentAction::RecentAction ( )
protected

◆ RecentAction() [3/4]

Gtk::RecentAction::RecentAction ( const Glib::ustring &  name,
const StockID stock_id = StockID(),
const Glib::ustring &  label = Glib::ustring(),
const Glib::ustring &  tooltip = Glib::ustring() 
)
explicitprotected
Deprecated:
There is no corresponding replacement when using Gio::Action.

◆ RecentAction() [4/4]

Gtk::RecentAction::RecentAction ( const Glib::ustring &  name,
const StockID stock_id,
const Glib::ustring &  label,
const Glib::ustring &  tooltip,
const Glib::RefPtr< RecentManager > &  recent_manager 
)
explicitprotected
Deprecated:
There is no corresponding replacement when using Gio::Action.

Member Function Documentation

◆ create() [1/4]

static Glib::RefPtr< RecentAction > Gtk::RecentAction::create ( )
static

◆ create() [2/4]

static Glib::RefPtr< RecentAction > Gtk::RecentAction::create ( const Glib::ustring &  name,
const Glib::ustring &  label = Glib::ustring(),
const Glib::ustring &  tooltip = Glib::ustring() 
)
static

◆ create() [3/4]

static Glib::RefPtr< RecentAction > Gtk::RecentAction::create ( const Glib::ustring &  name,
const Gtk::StockID stock_id,
const Glib::ustring &  label,
const Glib::ustring &  tooltip,
const Glib::RefPtr< RecentManager > &  recent_manager 
)
static
Deprecated:
There is no corresponding replacement when using Gio::Action.

◆ create() [4/4]

static Glib::RefPtr< RecentAction > Gtk::RecentAction::create ( const Glib::ustring &  name,
const Gtk::StockID stock_id,
const Glib::ustring &  label = Glib::ustring(),
const Glib::ustring &  tooltip = Glib::ustring() 
)
static
Deprecated:
There is no corresponding replacement when using Gio::Action.

◆ get_show_numbers()

bool Gtk::RecentAction::get_show_numbers ( )

Returns the value set by Gtk::RecentChooserMenu::set_show_numbers().

Since gtkmm 2.12:

Deprecated: 3.10

Deprecated:
Use Gtk::RecentChooserMenu::get_show_numbers() instead.
Returns
true if numbers should be shown.

◆ get_type()

static GType Gtk::RecentAction::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

◆ gobj() [1/2]

GtkRecentAction * Gtk::RecentAction::gobj ( )
inline

Provides access to the underlying C GObject.

◆ gobj() [2/2]

const GtkRecentAction * Gtk::RecentAction::gobj ( ) const
inline

Provides access to the underlying C GObject.

◆ gobj_copy()

GtkRecentAction * Gtk::RecentAction::gobj_copy ( )

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

◆ operator=()

RecentAction & Gtk::RecentAction::operator= ( RecentAction &&  src)
noexcept

◆ property_show_numbers() [1/2]

Glib::PropertyProxy< bool > Gtk::RecentAction::property_show_numbers ( )

Whether the items should be displayed with a number.

Deprecated: 3.10

Deprecated:
Use Gtk::RecentChooserMenu::property_show_numbers() instead.

Default value: false

Returns
A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.

◆ property_show_numbers() [2/2]

Glib::PropertyProxy_ReadOnly< bool > Gtk::RecentAction::property_show_numbers ( ) const

Whether the items should be displayed with a number.

Deprecated: 3.10

Deprecated:
Use Gtk::RecentChooserMenu::property_show_numbers() instead.

Default value: false

Returns
A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.

◆ set_show_numbers()

void Gtk::RecentAction::set_show_numbers ( bool  show_numbers = true)

Sets whether a number should be added to the items shown by the widgets representing action.

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.

Since gtkmm 2.12:

Deprecated: 3.10

Deprecated:
Use Gtk::RecentChooserMenu::set_show_numbers() instead.
Parameters
show_numberstrue if the shown items should be numbered.

Friends And Related Function Documentation

◆ wrap()

Glib::RefPtr< Gtk::RecentAction > wrap ( GtkRecentAction *  object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse 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.