man package:gtk

Creates a new RecentAction object. To add the action to a ActionGroup and set the accelerator for the action, call actionGroupAddActionWithAccel.
Constructing menus and toolbars from an XML description
  • Module available since Gtk+ version 2.4
These enumeration values are used by uiManagerAddUi to determine what UI element to create.
The "add-tearoffs" property controls whether generated menus have tearoff menu items. Note that this only affects regular menus. Generated popup menus never have tearoff menu items. Default value: False
Adds a UI element to the current contents of self. If type is UiManagerAuto, 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.
Parses a file containing a UI definition and merges it with the current contents of self. If a parse or IO error occurres, an exception is thrown.
Parses a string containing a UI definition and merges it with the current contents of self. An enclosing <ui> element is added if it is missing. If a parse error occurres, an exception is thrown.
Makes sure that all pending updates to the UI have been completed. This may occasionally be necessary, since UIManager updates the UI in an idle function. A typical example where this function is useful is to enforce that the menubar and toolbar have been added to the main window before showing it:
do
containerAdd window vbox
onAddWidget merge (addWidget vbox)
uiManagerAddUiFromFile merge "my-menus"
uiManagerAddUiFromFile merge "my-toolbars"
uiManagerEnsureUpdate merge
widgetShow window