Package: gtk

Function gtk-ui-manager-add-ui

Lambda List

gtk-ui-manager-add-ui (manager id path name action type top)

Arguments

manager -- a gtk-ui-manager object
id -- an unsigned integer with the merge ID for the merged UI, see the function gtk-ui-manager-new-merge-id
path -- a string with a path
name -- a string with the name for the added UI element
action -- a string with the name of the action to be proxied, or nil to add a separator
type -- a value of the gtk-ui-manager-item-type flags with the type of UI element to add
top -- if true, the UI element is added before its siblings, otherwise it is added after its siblings

Details

Adds a UI element to the current contents of manager.

If the UI manager item type is :auto, GTK inserts a menuitem, toolitem or separator if such an element can be inserted at the place determined by path. Otherwise the UI manager item type must indicate an element that can be inserted at the place determined by path.

If path points to a menuitem or toolitem, the new element will be inserted before or after this item, depending on top.

Warning

The function gtk-ui-manager-add-ui has been deprecated since version 3.10 and should not be used in newly written code.
 

See also

2021-7-20