CssProvider.loadFromPath

Loads the data contained in path into css_provider, making it clear any previously loaded information.

class CssProvider
bool
loadFromPath
(
string path
)

Parameters

path string

the path of a filename to load, in the GLib filename encoding

Return Value

Type: bool

true. The return value is deprecated and false will only be returned for backwards compatibility reasons if an error is not null and a loading error occurred. To track errors while loading CSS, connect to the #GtkCssProvider::parsing-error signal.

Throws