[ 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
.
this |
a Builder |
buffer |
the string to parse |
length |
the length of |
object_ids |
nul-terminated array of objects to build |
A positive value on success, 0 if an error occurred |