Popover.this

Creates a #GtkPopover 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 #GtkApplicationWindow to which the popover belongs - typically by means of being attached to a widget that is contained within the #GtkApplicationWindows widget hierarchy.

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

Parameters

relativeTo Widget

#GtkWidget the popover is related to

model MenuModel

a #GMenuModel

Return Value

the new #GtkPopover

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

3.12