GtkUIManager::add_ui_from_string

int add_ui_from_string(text);

This method parses a string containing a UI definition and merges it with the current UI definition. An enclosing <ui> element is added if it is missing. This method returns a merge id which can be used to unmerge the UI with the remove_ui method.