How do I set the background color of a GtkLabel widget?

GTK+ FAQ
<<< Previous | Development with GTK+: widget specific questions | Next >>>

# How do I set the background color of a GtkLabel widget?

The GtkLabel widget is one of a few GTK+ widgets that don't create their own window to render themselves into. Instead, they draw themselves directly onto their parents window.

This means that in order to set the background color for a GtkLabel widget, you need to change the background color of its parent, i.e. the object that you pack it into.

<<< Previous | Home | Next >>>
How do I right (or otherwise) justify a GtkLabel? | Up | How do I set the color and font of a GtkLabel using a Resource File?