Menu.from_model
Description:
[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( since = "3.4" ) ]
public Menu.from_model (MenuModel model)
[ Version ( since = "3.4" ) ]
public Menu.from_model (MenuModel model)
Creates a Menu 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 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.
Parameters:
model |
Returns:
a new Menu |