MenuManager.setAttributeString

Overwrites an attribute for a menu that was created by #PanelMenuManager.

This can be useful when you want to update an attribute such as "accel" when an accelerator has changed due to user mappings.

class MenuManager
void
setAttributeString

Parameters

menu gio.menu.Menu

the menu that was retreived with panel.menu_manager.MenuManager.getMenuById

position uint

the index of the item in the menu

attribute string

the attribute to change

value string

the new value for the attribute