Hi,
I've been trying to change the background colour for the text dispalyed
in a statusbar, but I don't get it as I want it!
I simply want the background of the text to be red, but it seems to be
quite difficult - or I've just missed something. (Probably the later :-)
I've tried a lot of
, October 01, 2004 5:54 PM
Subject: Changing background color of text in statusbar
Hi,
I've been trying to change the background colour for the text dispalyed in
a statusbar, but I don't get it as I want it!
I simply want the background of the text to be red, but it seems to be
quite difficult
Also, consider setting colours via a grkrc file rather than in your
code. As Viraj says, make an event box, set a name for it with
gtk_widget_set_name() (maybe status_bar?), then in a gtkrc for your
application have something like:
style red_style = default
{
bg[NORMAL] = #C1665A
Viraj Chatterjee wrote:
Put your gtk_label in an eventbox and then change the background of the
eventbox.
Look at:
3.1.
How do I change the color of a widget?
in the Common queries at the GTK+ web site.
Do you mean www.gtk.org FAQ chapter 6.1 ?
I don't see anything called 'Common queries'...
-vc
Hi,
I've been trying to change the background colour for the text dispalyed
in a statusbar, but I don't get it as I want it!
I simply want the background of the text to be red, but it seems to be
quite difficult - or I've just missed something. (Probably the later :-)
I've tried a lot of