Package: gtk

Function gtk-widget-override-background-color

Lambda List

gtk-widget-override-background-color (widget state color)

Arguments

widget -- a gtk-widget object
state -- the gtk-state-flags flags for which to set the background color
color -- the gdk-rgba color to assign, or nil to undo the effect of previous calls

Details

Sets the background color to use for a widget. All other style values are left untouched. See the gtk-widget-override-color function.

Warning

The gtk-widget-override-background-color function has been deprecated since version 3.16 and should not be used in newly written code. 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 gtk-style-provider object and a CSS style class. You can also override the default drawing of a widget through the "draw" signal, and use Cairo to draw a specific color, regardless of the CSS style.
 

See also

2021-9-19