WidgetClass.setTemplate

This should be called at class initialization time to specify the GtkBuilder XML to be used to extend a widget.

For convenience, [method@Gtk.WidgetClass.set_template_from_resource] is also provided.

Note that any class that installs templates must call [method@Gtk.Widget.init_template] in the widget’s instance initializer.

class WidgetClass
void
setTemplate

Parameters

templateBytes Bytes

A #GBytes holding the #GtkBuilder XML

Meta