Constructor

GtkBuildernew_from_file

since: 3.10

Declaration [src]

GtkBuilder*
gtk_builder_new_from_file (
  const gchar* filename
)

Description [src]

Builds the [GtkBuilder UI definition][BUILDER-UI] in the file filename.

If there is an error opening the file or parsing the description then the program will be aborted. You should only ever attempt to parse user interface descriptions that are shipped as part of your program.

Available since: 3.10

Parameters

filename

Type: const gchar*

Filename of user interface description file.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: GtkBuilder

A GtkBuilder containing the described interface.

The caller of the function takes ownership of the data, and is responsible for freeing it.