int add_ui_from_file(string filename, GError error);

This method parses a file containing a UI definition and merges it with the current UI definition. If there is an error during the parsing of the file it will be place in GError. This method returns a merge id which can be used to unmerge the UI with the remove_ui method.