Package: gio

Function g-menu-remove

Lambda List

g-menu-remove (menu position)

Arguments

menu -- a g-menu object
position -- an integer with the position of the menu item to remove

Details

Removes an item from the menu. The argument position gives the index of the menu item to remove.

It is an error if position is not in the range from 0 to one less than the number of menu items in the menu.

It is not possible to remove items by identity since items are added to the menu simply by copying their links and attributes, i.e. identity of the menu item itself is not preserved.
 

See also

2021-8-16