PopoverMenu.from_model


Description:

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

Creates a `GtkPopoverMenu` and populates it according to model.

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 `GtkApplicationWindow`s widget hierarchy.

Actions can also be added using [[email protected]_action_group] on the menus attach widget or on any of its parent widgets.

This function creates menus with sliding submenus. See [[email protected]_from_model_full] for a way to control this.

Parameters:

model

a `GMenuModel`

Returns:

the new `GtkPopoverMenu`




2022 vala-language.org