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.
-vc
- Original Message -
From: "Egon Andersen" <[EMAIL PROTECTED]>
To: "gtk-list" <[EMAIL PROTECTED]>
Sent: F
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
additional
work..., and I'll have to figure that out..
- Original Message -
From: "Egon Andersen" <[EMAIL PROTECTED]>
To: "gtk-list" <[EMAIL PROTECTED]>
Sent: Friday, October 01, 2004 6:24 PM
Subject: Re: Changing background color of text in statusbar
V
Viraj Chatterjee wrote:
http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html
GtkWidget* eventbox = gtk_event_box_new();
GtkWidget *label = gtk_label_new(" some text"):
gtk_container_add(GTK_CONTAINER(eventbox), label);
...
For adding this eventbox in to your status bar might requi