set_template_from_resource


Description:

[ CCode ( cname = "gtk_widget_class_set_template_from_resource" ) ]
public class void set_template_from_resource (string resource_name)

A convenience function that calls [method@Gtk.

WidgetClass.set_template] with the contents of a `GResource`.

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

Parameters:

this

A `GtkWidgetClass`

resource_name

The name of the resource to load the template from