Builder.addFromString

Parses a string containing a GtkBuilder UI definition and merges it with the current contents of builder. Upon errors 0 will be returned and error will be assigned a GError from the GTK_BUILDER_ERROR or G_MARKUP_ERROR domain. Since 2.12

class Builder
uint
addFromString

Parameters

buffer string

the string to parse

length gsize

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

Return Value

Type: uint

A positive value on success, 0 if an error occurred

Throws

GException on failure.

Meta