How can I colorize a Gtk::Entry field?


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 Lorenz ***

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