Builder.extendWithTemplate

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.

class Builder
uint
extendWithTemplate

Parameters

widget gtk.widget.Widget

the widget that is being extended

templateType gobject.types.GType

the type that the template is for

buffer string

the string to parse

Return Value

Type: uint

A positive value on success, 0 if an error occurred

Throws