View Full Version : [C++]gtkmm: Changing color of a label

May 30th, 2006, 04:13 PM
Hello guys,

This is my code:

Gdk::Color c( "red" );
window1->text->modify_bg(Gtk::STATE_NORMAL, c );

but the label still remains gray :(

im new to gtk, any help? ohh and any good tutorials? :p

May 30th, 2006, 08:04 PM
ok, i found out that i had to add an eventbox, althought i cant understand why :p