How can I colorize a Gtk::Entry field?



Hi,

can anybody please tell me, what is the correct way to colorize a
Gtk::Entry field?

I already tried with ->set_foreground($color) with 
my $color = Gtk::Gdk::Color->parse_color("red");

but it failed with a "
Can't locate object method "set_foreground" via package "Gtk::Entry"
error :(

And is there also a way to "remove" the color settings and to give the
field back its original (defined by the theme) color setting?

Ciao and thank you very much in advance
  Christoph
-- 
Christoph Lorenz *** http://ChLorenz.home.pages.de/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]