Constructor
GtkBuildernew_from_string
since: 3.10
Declaration [src]
GtkBuilder*
gtk_builder_new_from_string (
const gchar* string,
gssize length
)
Description [src]
Builds the user interface described by string (in the
[GtkBuilder UI definition][BUILDER-UI] format).
If string is NULL-terminated, then length should be -1.
If length is not -1, then it is the length of string.
If there is an error parsing string then the program will be
aborted. You should not attempt to parse user interface description
from untrusted sources.
Available since: 3.10
Parameters
string-
Type:
const gchar*A user interface (XML) description.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. length-
Type:
gssizeThe length of
string, or -1.
Return value
Type: GtkBuilder
A GtkBuilder containing the interface described by string.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |