The white part of a text-accepting widget uses the "base" color, not the "bg" color. The only way I know to set that is with a style:
style "myEntry" { base[NORMAL] = "#ff0000" # or whatever } class "GtkEntry" style "myEntry" You can load this setting by placing that text in a file called "foo" and then calling gtk_rc_parse("foo"), or you can put it in a string called "bar" and call gtk_rc_parse_string(bar). -Alem On 11/24/05, Michal Kepien <[EMAIL PROTECTED]> wrote: > Hi there, > > Is it possible to change the background color of a GtkEntry? > gtk_widget_modify_bg() does not do what I need - I want to modify the widget's > true background, not to make a border around it (this is what > gtk_widget_modify_bg() does); i.e. I want the text that user inputs appear on > the background color I choose, not the standard one (white by default). Here > is a conceptual image: http://kempniu.no-ip.com/files/gtkentry.jpg ;) > > Best regards, > Michal Kepien > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list