MenuManager.setAttributeString

void setAttributeString(gio.menu.Menu menu, uint position, string attribute, string value)

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.

Parameters

menuthe menu that was retreived with [panel.menu_manager.MenuManager.getMenuById]
positionthe index of the item in the menu
attributethe attribute to change
valuethe new value for the attribute