add_from_resource


Description:

[ Version ( since = "3.4" ) ]
public uint add_from_resource (string resource_path) throws Error

Parses a resource file containing a GtkBuilder UI definition and merges it with the current contents of this.

Most users will probably want to use Builder.from_resource.

If an error occurs, 0 will be returned and throws will be assigned a Error from the BuilderError, MarkupError or ResourceError domain.

It’s not really reasonable to attempt to handle failures of this call. The only reasonable thing to do when an error is detected is to call error.

Parameters:

this

a Builder

resource_path

the path of the resource file to parse

Returns:

A positive value on success, 0 if an error occurred




2022 vala-language.org