[ Version ( since = "3.4" ) ]
public Menu.from_model (MenuModel model)
Creates a Menu and populates it with menu items and submenus according to
The created menu items are connected to actions found in the ApplicationWindow to which the menu belongs - typically by means of being attached to a widget (see attach_to_widget) that is contained within the ApplicationWindows widget hierarchy.
Actions can also be added using insert_action_group on the menu's attach widget or on any of its parent widgets.
a new Menu