Gtk.MenuBar.new_from_model
function new_from_model(model:Gio.MenuModel):Gtk.Widget { // Gjs wrapper for gtk_menu_bar_new_from_model() }
Creates a new Gtk.MenuBar and populates it with menu items and submenus according to model.
The created menu items are connected to actions found in the Gtk.ApplicationWindow to which the menu bar belongs - typically by means of being contained within the #GtkApplicationWindows widget hierarchy.
Since 3.4
- model
- Returns
a new Gtk.MenuBar