StyleContext.addClass

Adds a style class to context, so later uses of the style context will make use of this new class for styling.

In the CSS file format, a gtk.entry.Entry defining a “search” class, would be matched by:

entry.search { ... }

While any widget defining a “search” class would be matched by:

.search { ... }
More...
class StyleContext
void
addClass
(
string className
)

Parameters

className string

class name to use in styling

Detailed Description

Deprecated: Use gtk.widget.Widget.addCssClass instead