Gtk.UIManager.prototype.add_ui_from_file
function add_ui_from_file(filename:filename):Number {
// Gjs wrapper for gtk_ui_manager_add_ui_from_file()
}Parses a file containing a <link linkend="XML-UI">UI definition</link> and merges it with the current contents of manager.
Since 2.4
- filename
the name of the file to parse
- Returns
The merge id for the merged UI. The merge id can be used to unmerge the UI with Gtk.remove_ui. If an error occurred, the return value is 0.