[ Version ( since = "2.4" ) ]
public void add_ui (uint merge_id, string path, string name, string? action, UIManagerItemType type, bool top)
Adds a UI element to the current contents of this.
If type
is gtk_ui_manager_auto, GTK+ inserts a menuitem, toolitem or separator if such an
element can be inserted at the place determined by path
. Otherwise 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
.
this | |
merge_id |
the merge id for the merged UI, see new_merge_id |
path |
a path |
name |
the name for the added UI element |
action |
the name of the action to be proxied, or null to add a separator |
type |
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. |