Class: Gtk::PopoverMenu

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

Instance Method Summary collapse

Instance Method Details

#newGtk::Widget

Creates a new popover menu.

Returns:

#open_submenu(name) ⇒ nil

Opens a submenu of the popover. The name must be one of the names given to the submenus of popover with Gtk::PopoverMenu:submenu, or “main” to switch back to the main menu.

Gtk::ModelButton will open submenus automatically when the Gtk::ModelButton:menu-name property is set, so this function is only needed when you are using other kinds of widgets to initiate menu changes.

Parameters:

  • name (String)

    the name of the menu to switch to

Returns:

  • (nil)

#visible_submenuString

Returns visible-submenu.

Returns:

  • (String)

    visible-submenu

#visible_submenu=(visible_submenu) ⇒ String

Parameters:

  • visible_submenu (String)

Returns:

  • (String)

    visible-submenu

  • (String)

    visible-submenu