Builder.extendWithTemplate

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.

class Builder
bool
extendWithTemplate

Parameters

object gobject.object.ObjectG

the object that is being extended

templateType gobject.types.GType

the type that the template is for

buffer string

the string to parse

length ptrdiff_t

the length of buffer (may be -1 if buffer is nul-terminated)

Return Value

Type: bool

A positive value on success, 0 if an error occurred