MenuManager.merge

uint merge(string menuId, gio.menu_model.MenuModel menuModel)

Note that menu_model is not retained, a copy of it is made.

Parameters

menuIdthe identifier of the menu
menuModelthe menu model to merge

Returns

the merge-id which can be used with [panel.menu_manager.MenuManager.remove]