Re: Changing background color of text in statusbar

2004-10-01 Thread Viraj Chatterjee
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

Re: Changing background color of text in statusbar

2004-10-01 Thread John Cupitt
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"

Re: Changing background color of text in statusbar

2004-10-01 Thread Egon Andersen
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

Re: Changing background color of text in statusbar

2004-10-01 Thread Viraj Chatterjee
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

Re: Changing background color of text in statusbar

2004-10-01 Thread Egon Andersen
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