Class method

GtkWidgetClassset_template_from_resource

Declaration [src]

void
gtk_widget_class_set_template_from_resource (
  GtkWidgetClass* widget_class,
  const gchar* resource_name
)

Description [src]

A convenience function to call gtk_widget_class_set_template().

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

Available since:3.10

Parameters

resource_name

Type: const gchar*

The name of the resource to load the template from.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.