[ 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 [[email protected]_template] in the widget’s instance initializer.
this |
A `GtkWidgetClass` |
resource_name |
The name of the resource to load the template from |