Warning: get_css_provider is deprecated since 5.5.0. Use Gtk.CssProvider.load_from_data.
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.
stylesheet |
CSS style to apply to the returned provider |
a new Gtk.CssProvider, or null in case the parsing of stylesheet failed. |