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: AdwSidebarSection:setup-menu] signal to set up the menu actions for the particular item.

If not set, [property@Sidebar:menu-model] will be used instead.

Parameters:

this

a sidebar section

menu_model

a menu model