set_menu_model


Description:

public void set_menu_model (MenuModel? menu_model)

Sets the context menu model for this's items.

When a context menu is shown for an item, it will be constructed from the provided menu model. Use the [signal@Sidebar: AdwSidebar:setup-menu] signal to set up the menu actions for the particular item.

[property@Sidebar:menu-model] will be preferred over this model if set.

Parameters:

this

a sidebar

menu_model

a menu model