Gio.MenuItem.new
function new(label: String, detailed_action: String): Gio.MenuItem {
// Gjs wrapper for g_menu_item_new()
}
Creates a new Gio.MenuItem.
If label is non-null it is used to set the "label" attribute of the new item.
If detailed_action is non-null it is used to set the "action" and possibly the "target" attribute of the new item. See Gio.MenuItem.prototype.set_detailed_action for more information.
Since 2.32
- label
the section label, or null
- detailed_action
the detailed action string, or null
- Returns
a new Gio.MenuItem