UIManager.addUi

Adds a UI element to the current contents of self. 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. Since 2.4

class UIManager
void
addUi
(
uint mergeId
,
string path
,
string name
,
string action
,,
int top
)

Parameters

mergeId uint

the merge id for the merged UI, see gtk_ui_manager_new_merge_id()

path string

a path

name string

the name for the added UI element

action string

the name of the action to be proxied, or NULL to add a separator. [allow-none]

type GtkUIManagerItemType

the type of UI element to add.

top int

if TRUE, the UI element is added before its siblings, otherwise it is added after its siblings.

Meta