Widget.overrideBackgroundColor

Sets the background color to use for a widget.

All other style values are left untouched. See gtk.widget.Widget.overrideColor.

More...
class Widget
void
overrideBackgroundColor

Parameters

state gtk.types.StateFlags

the state for which to set the background color

color gdk.rgba.RGBA

the color to assign, or null to undo the effect of previous calls to gtk.widget.Widget.overrideBackgroundColor

Detailed Description

Deprecated: This function is not useful in the context of CSS-based rendering. If you wish to change the way a widget renders its background you should use a custom CSS style, through an application-specific #GtkStyleProvider and a CSS style class. You can also override the default drawing of a widget through the #GtkWidget::draw signal, and use Cairo to draw a specific color, regardless of the CSS style.