set_menu_model


Description:

public void set_menu_model (MenuModel? model)

Sets the menu model used to create the popover that will be presented when calling [method@Gtk.

PopoverBin.popup].

If model is `NULL`, the popover will be unset.

A [class@Gtk.Popover] will be created from the menu model with [ctor@Gtk.PopoverMenu.new_from_model]. Actions will be connected as documented for this function.

If [property@Gtk.PopoverBin:popover] is already set, it will be dissociated from the popover bin, and the property is set to `NULL`.

See: [method@Gtk.PopoverBin.set_popover]

Parameters:

this

a popover bin

model

a menu model