add_css_class
Description:
Adds a style class to the widget.
After calling this function, the widget’s style will match for css_class
, according to CSS matching rules.
Use [method@Gtk.Widget.remove_css_class] to remove the style again.
Parameters:
this |
a widget |
css_class |
style class to add to this, without the leading period |