StyleContext.addClass
void addClass(string className) nothrowAdds a style class to context, so posterior calls to gtk.style_context.StyleContext.get or any of the gtk_render_*() functions will make use of this new class for styling.
In the CSS file format, a #GtkEntry defining a “search” class, would be matched by:
entry.search { ... }While any widget defining a “search” class would be matched by:
.search { ... }Parameters
className | class name to use in styling |