Gtk.UIManager.prototype.add_ui_from_resource
function add_ui_from_resource(resource_path:String):Number {
// Gjs wrapper for gtk_ui_manager_add_ui_from_resource()
}Parses a resource file containing a <link linkend="XML-UI">UI definition</link> and merges it with the current contents of manager.
Since 3.4
- resource_path
the resource path 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.