Package: gtk

Function gtk:widget-class-bind-template-child

Lambda List

gtk:widget-class-bind-template-child (gtype name)

Arguments

gtype -- a g:type-t type ID for the widget class
name -- a string for the ID of the child defined in the template XML

Details

Binds a child widget defined in a template to the widget class of type gtype. Automatically assign an object declared in the class template XML to be set accessible via the gtk:widget-template-child function.

Note that this must be called from a composite widget class initializer after calling the gtk:widget-class-set-template function.
 

See also

gtk:widget
g:type-id
gtk:widget-template-child
gtk:widget-set-template
2025-12-07