get_css_provider
Description:
[ Version ( deprecated = true , deprecated_since = "5.5.0" , replacement = "Gtk.CssProvider.load_from_data" ) ]
public CssProvider? get_css_provider (string stylesheet)
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.
Parameters:
stylesheet |
CSS style to apply to the returned provider |
Returns:
a new Gtk.CssProvider, or null in case the parsing of stylesheet failed. |
Namespace: Granite.Widgets.Utils
Package: granite