get_css_provider


Description:

public CssProvider? get_css_provider (string stylesheet)

Constructs a new Gtk.CssProvider that will store the stylesheet data. This function uses Gtk.CssProvider.load_from_data internally so if this method fails then a warning will be thrown and null returned as a result.

Parameters:

stylesheet

CSS style to apply to the returned provider

Returns:

a new Gtk.CssProvider, or null in case the parsing of stylesheet failed.


Package: granite