MenuBar.newFromModel
gtk.menu_bar.MenuBar newFromModel(gio.menu_model.MenuModel model)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.
Parameters
model | a #GMenuModel |
Returns
a new #GtkMenuBar