Gio.MenuItem.prototype.set_label
function set_label(label: String): void { // Gjs wrapper for g_menu_item_set_label() }
Sets or unsets the "label" attribute of menu_item.
If label is non-null it is used as the label for the menu item. If it is null then the label attribute is unset.
Since 2.32
- label
the label to set, or null to unset