add_objects_from_string


Description:

public bool add_objects_from_string (string buffer, ssize_t length, string[] object_ids) throws Error

Parses a string containing a UI definition, building only the requested objects and merges them with the current contents of this.

Upon errors false will be returned and throws will be assigned a `GError` from the gtk_builder_error or g_markup_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`

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:

true on success, false if an error occurred