Builder.extendWithTemplate

bool extendWithTemplate(gobject.object.ObjectWrap object, gobject.types.GType templateType, string buffer)

Main private entry point for building composite components from template XML.

Most likely you do not need to call this function in applications as templates are handled by [gtk.widget.Widget].

Parameters

objectthe object that is being extended
templateTypethe type that the template is for
bufferthe string to parse

Returns

A positive value on success, 0 if an error occurred

Throws

[ErrorWrap]