MenuBar.newFromModel

Creates a new #GtkMenuBar and populates it with menu items and submenus according to model.

The created menu items are connected to actions found in the #GtkApplicationWindow to which the menu bar belongs - typically by means of being contained within the #GtkApplicationWindows widget hierarchy.

class MenuBar
static
newFromModel

Parameters

model gio.menu_model.MenuModel

a #GMenuModel

Return Value

Type: gtk.menu_bar.MenuBar

a new #GtkMenuBar