Method

GtkCssProviderload_from_resource

since: 3.16

Declaration [src]

void
gtk_css_provider_load_from_resource (
  GtkCssProvider* css_provider,
  const gchar* resource_path
)

Description [src]

Loads the data contained in the resource at resource_path into the GtkCssProvider, clearing any previously loaded information.

To track errors while loading CSS, connect to the GtkCssProvider::parsing-error signal.

Available since: 3.16

Parameters

resource_path

Type: const gchar*

A GResource resource path.

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