add_objects_from_resource


Description:

[ Version ( since = "3.4" ) ]
public uint add_objects_from_resource (string resource_path, string[] object_ids) throws Error

Parses a resource 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 ResourceError 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.

Parameters:

this

a Builder

resource_path

the path of the resource file to parse

object_ids

nul-terminated array of objects to build

Returns:

A positive value on success, 0 if an error occurred




2022 vala-language.org