Gtk.CssProvider.prototype.load_from_path

function load_from_path(path:String):Boolean {
    // Gjs wrapper for gtk_css_provider_load_from_path()
}

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

path

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

Returns

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 occured. To track errors while loading CSS, connect to the GtkCssProvider::parsing-error signal.