Method

GtkCssProviderload_named

Declaration [src]

void
gtk_css_provider_load_named (
  GtkCssProvider* provider,
  const char* name,
  const char* variant
)

Description [src]

Loads a theme from the usual theme paths.

The actual process of finding the theme might change between releases, but it is guaranteed that this function uses the same mechanism to load the theme that GTK uses for loading its own theme.

Parameters

name

Type: const char*

A theme name.

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

Type: const char*

Variant to load, for example, “dark”, or NULL for the default.

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