CssProvider.loadFromFile

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

class CssProvider
bool
loadFromFile

Parameters

file FileIF

GFile pointing to a file to load

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 parsing-error signal.

Throws

GException on failure.