Package: gio

Function g-menu-item-new

Lambda List

g-menu-item-new (label action)

Arguments

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

Return Value

A new g-menu-item object.

Details

Creates a new g-menu-item object.

If label is non-nil it is used to set the "label" attribute of the new menu item.

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

See also

2021-8-16