add_objects_from_file


Description:

public bool add_objects_from_file (string filename, string[] object_ids) throws Error

Parses a file containing a 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 `GError` from the gtk_builder_error, g_markup_error or g_file_error domain.

If you are adding an object that depends on an object that is not its child (for instance a `GtkTreeView` that depends on its `GtkTreeModel`), you have to explicitly list all of them in object_ids.

Parameters:

this

a `GtkBuilder`

filename

the name of the file to parse

object_ids

nul-terminated array of objects to build

Returns:

true on success, false if an error occurred




2022 vala-language.org