Class: Gtk::RecentAction

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

Instance Method Summary collapse

Instance Method Details

#new(name, label, tooltip, stock_id) ⇒ Gtk::Action

Creates a new Gtk::RecentAction object. To add the action to a Gtk::ActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel().

Parameters:

  • name (String)

    a unique name for the action

  • label (String)

    the label displayed in menu items and on buttons, or nil

  • tooltip (String)

    a tooltip for the action, or nil

  • stock_id (String)

    the stock icon to display in widgets representing the action, or nil

Returns:

  • (Gtk::Action)

    the newly created Gtk::RecentAction.

#new_for_manager(name, label, tooltip, stock_id, manager) ⇒ Gtk::Action

Creates a new Gtk::RecentAction object. To add the action to a Gtk::ActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel().

Parameters:

  • name (String)

    a unique name for the action

  • label (String)

    the label displayed in menu items and on buttons, or nil

  • tooltip (String)

    a tooltip for the action, or nil

  • stock_id (String)

    the stock icon to display in widgets representing the action, or nil

  • manager (Gtk::RecentManager)

    a Gtk::RecentManager, or nil for using the default Gtk::RecentManager

Returns:

  • (Gtk::Action)

    the newly created Gtk::RecentAction

#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 items should be displayed with a number.

Parameters:

  • show_numbers (TrueClass)

Returns:

  • (TrueClass)

    show-numbers

  • (TrueClass)

    show-numbers

#show_numbers?TrueClass

Whether the items should be displayed with a number.

Returns:

  • (TrueClass)

    show-numbers