WidgetClass.setTemplateFromResource

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.

class WidgetClass
void
setTemplateFromResource
()

Parameters

resourceName string

The name of the resource to load the template from

Meta