Package: gtk

Function gtk:widget-class-set-template

Lambda List

gtk:widget-class-set-template (gtype template)

Arguments

gtype -- a g:type-t type ID of the widget class
template -- a string holding the gtk:builder XML

Details

This should be called at class initialization time to specify the gtk:builder XML to be used to extend a widget. For convenience, the gtk:widget-class-set-template-from-resource function is also provided.

Note that any class that installs templates must call the gtk:widget-init-template function in the instance initializer of the widget.
 

See also

2024-9-14