Package: gio

Function gio:menu-item-new

Lambda List

gio:menu-item-new (label action)

Arguments

label -- a string with the section label, or nil
action -- a detailed action string, or nil

Return Value

The new g:menu-item object.

Details

Creates a new g:menu-item object. If label is not nil it is used to set the "label" attribute of the new menu item.

If action is not nil it is used to set the "action" and possibly the "target" attribute of the new item. See the g:menu-item-set-detailed-action function for more information.
 

See also

2024-12-30