set_template


Description:

[ Version ( since = "3.10" ) ]
public static void set_template (Bytes template_bytes)

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

For convenience, set_template_from_resource is also provided.

Note that any class that installs templates must call init_template in the widget’s instance initializer.

Parameters:

template_bytes

A Bytes holding the Builder XML

widget_class

A Widget