Gtk.MenuShell
const Gtk = imports.gi.Gtk;
let menu_shell = new Gtk.MenuShell({
take_focus: value,
});
A Gtk.MenuShell is the abstract base class used to derive the Gtk.Menu and Gtk.MenuBar subclasses.
A Gtk.MenuShell is a container of Gtk.MenuItem objects arranged in a list which can be navigated, selected, and activated by the user to perform application functions. A Gtk.MenuItem can have a submenu associated with it, allowing for nested hierarchical menus.
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.Widget
-
Gtk.Container
- Gtk.MenuShell
-
-
-
Methods
- Gtk.MenuShell.prototype.activate_item
- Gtk.MenuShell.prototype.append
- Gtk.MenuShell.prototype.bind_model
- Gtk.MenuShell.prototype.cancel
- Gtk.MenuShell.prototype.deactivate
- Gtk.MenuShell.prototype.deselect
- Gtk.MenuShell.prototype.get_parent_shell
- Gtk.MenuShell.prototype.get_selected_item
- Gtk.MenuShell.prototype.get_take_focus
- Gtk.MenuShell.prototype.insert
- Gtk.MenuShell.prototype.prepend
- Gtk.MenuShell.prototype.select_first
- Gtk.MenuShell.prototype.select_item
- Gtk.MenuShell.prototype.set_take_focus