CssProvider.getNamed

gtk.css_provider.CssProvider getNamed(string name, string variant = null)

Loads a theme from the usual theme paths

Parameters

nameA theme name
variantvariant to load, for example, "dark", or null for the default

Returns

a #GtkCssProvider with the theme loaded.

This memory is owned by GTK+, and you must not free it.