Builder.extendWithTemplate

uint extendWithTemplate(gtk.widget.Widget widget, gobject.types.GType templateType, string buffer)

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

This is exported purely to let gtk-builder-tool validate templates, applications have no need to call this function.

Parameters

widgetthe widget 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]