PopoverMenu.from_model_full


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
public PopoverMenu.from_model_full (MenuModel model, PopoverMenuFlags flags)

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

The created buttons are connected to actions found in the action groups that are accessible from the parent widget. This includes the `GtkApplicationWindow` to which the popover belongs. Actions can also be added using [[email protected]_action_group] on the parent widget or on any of its parent widgets.

The only flag that is supported currently is gtk_popover_menu_nested, which makes GTK create traditional, nested submenus instead of the default sliding submenus.

Parameters:

model

a `GMenuModel`

flags

flags that affect how the menu is created

Returns:

the new `GtkPopoverMenu`




2022 vala-language.org