Popover.from_model


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
public Popover.from_model (Widget? relative_to, MenuModel model)

Creates a Popover and populates it according to model.

The popover is pointed to the relative_to widget.

The created buttons are connected to actions found in the ApplicationWindow to which the popover belongs - typically by means of being attached to a widget that is contained within the ApplicationWindows widget hierarchy.

Actions can also be added using insert_action_group on the menus attach widget or on any of its parent widgets.

Parameters:

relative_to

Widget the popover is related to

model

a MenuModel

Returns:

the new Popover