PopoverMenu.from_model_full
Description:
[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
public PopoverMenu.from_model_full (MenuModel model, PopoverMenuFlags flags)
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 [method@Gtk.Widget.insert_action_group] on the parent widget or on any of its parent widgets.
Parameters:
model |
a `GMenuModel` |
flags |
flags that affect how the menu is created |
Returns:
the new `GtkPopoverMenu` |