Function

GtkCssProviderget_named

Declaration [src]

GtkCssProvider*
gtk_css_provider_get_named (
  const gchar* name,
  const gchar* variant
)

Description [src]

Loads a theme from the usual theme paths.

Parameters

name

Type: const gchar*

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 gchar*

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.

Return value

Type: GtkCssProvider

A GtkCssProvider with the theme loaded. This memory is owned by GTK+, and you must not free it.

The data is owned by the called function.