[Gtk-sharp-list] color in widgets

Kris Luyten kris.luyten@luc.ac.be
Mon, 22 Sep 2003 01:34:13 +0200


I have a small question about using color with widgets. When I use the
following code, I get a button with a red background. But when Button is
replaced by Label or Entry in this code, their background color is not
Button e = new Button("I am a red button");
Gdk.Color c = new Gdk.Color();
Gdk.Color.Parse("red", ref c);
e.ModifyFg(StateType.Normal, c);

Am I missing something here? (I compiled the latest Gtk version out of
CVS last friday, after the 0.11 release. Mono version= 0.26)

Kris Luyten
Expertisecentrum Digitale Media - Limburgs Universitair Centrum
Wetenschapspark 2  3590 Diepenbeek (Belgium)
tel.: +32 (0)11 268411
email: kris.luyten@luc.ac.be
PGP-key: http://lumumba.luc.ac.be/kris/kris-pub.txt
homepage: http://lumumba.luc.ac.be/kris/