Text and Foreground Color of Gtk::ComboBox and Gtk::CheckButton on INSENSITIVE STATE



Hi,

How can I change de Text or/and Foreground Color of a Gtk::ComboBox and Gtk::CheckButton on a INSENSITIVE STATE?

I'm using like this:

==================start
Gtk::ComboBox *combo;
Gtk::CheckButton *button;

(...)

Gdk::Color color;
color.set_rgb( 0, 0, 0 );
combo->modify_text( Gtk::STATE_INSENSITIVE, color );
combo->modify_text( Gtk::STATE_INSENSITIVE, color );
button->modify_fg( Gtk::STATE_INSENSITIVE, color );
button->modify_fg( Gtk::STATE_INSENSITIVE, color );

==================end.

But on insensitive state it doesnt work.

Thanks.


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