Package: gtk

Function gtk:widget-class-set-template-scope

Lambda List

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

Arguments

gtype -- a g:type-t type ID for the widget class
scope -- a gtk:builder-cl-scope instance to use when loading the class template

Details

For use in language bindings, this will override the default gtk:builder-scope instance to be used when parsing GtkBuilder XML from the template data of the class. Note that this must be called from a composite widget class initializer after calling the gtk:widget-class-set-template function.

See the gtk:widget-init-template documentation for an example.
 

See also

2025-12-07