set_template


Description:

[ CCode ( cname = "gtk_widget_class_set_template" ) ]
public class 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, [[email protected]_template_from_resource] is also provided.

Note that any class that installs templates must call [[email protected]_template] in the widget’s instance initializer.

Parameters:

this

A `GtkWidgetClass`

template_bytes

A `GBytes` holding the `GtkBuilder` XML




2022 vala-language.org