add_objects_from_string


Description:

[ Version ( since = "2.14" ) ]
public uint add_objects_from_string (string buffer, size_t length, string[] object_ids) throws Error

Parses a string 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 or MarkupError 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

buffer

the string to parse

length

the length of buffer (may be -1 if buffer is nul-terminated)

object_ids

nul-terminated array of objects to build

Returns:

A positive value on success, 0 if an error occurred