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 for the merge ID for the merged UI, see the gtk:ui-manager-new-merge-id function
path -- a string for a path
name -- a string for the name for the added UI element
action -- a string for 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 for 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 gtk:ui-manager-add-ui function has been deprecated since version 3.10 and should not be used in newly written code.
 

See also

#2025-07-05