set_theming


Description:

public CssProvider? set_theming (Widget widget, string stylesheet, string? class_name, int priority)

Applies the stylesheet to the widget.

Parameters:

widget

widget to apply style to

stylesheet

CSS style to apply to the widget

class_name

class name to add style to, pass null if no class should be applied to the widget

priority

priorty of change, for most cases this will be Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION

Returns:

the Gtk.CssProvider that was applied to the widget.


Package: granite