[ Version ( since = "2.14" ) ]
public uint add_objects_from_file (string filename, string[] object_ids) throws Error
Parses a file containing a GtkBuilder UI definition building only the requested objects and merges them with the current contents of this.
Upon errors 0 will be returned and throws will be assigned a Error from the BuilderError, MarkupError or FileError domain.
If you are adding an object that depends on an object that is not its child (for instance a
TreeView that depends on its TreeModel), you have to explicitly list all of them
in object_ids
.
this |
a Builder |
filename |
the name of the file to parse |
object_ids |
nul-terminated array of objects to build |
A positive value on success, 0 if an error occurred |