MenuBar.from_model


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( since = "3.4" ) ]
public MenuBar.from_model (MenuModel model)

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

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

Parameters:

model

a MenuModel

Returns:

a new MenuBar