Package: gtk

Function gtk:widget-class-set-template-from-file

Lambda List

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

Arguments

gtype -- a g:type-t type ID for the widget class
path -- a pathname or namestring 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. This is a convenience function for the Lisp library. It reads a file into a string and then calls the gtk:widget-class-set-template function.

Note that any class that installs templates must call the gtk:widget-init-template function in the instance initializer of the widget. See its documentation for an example.
 

See also

2025-12-07