In my application I'm trying to use GTK rc file to style the widgets:
style "boxstyle1"
{
bg[ACTIVE] = { 0.0, 1.0, 0.0 }
bg[NORMAL] = { 1.0, 0.0, 0.0 }
bg[PRELIGHT] = { 0.0, 0.0, 1.0 }
}
widget "*.eventbox1" style "boxstyle1"
while the normal color is taken but the other states not. anyone experienced with this problem?
EDIT:
When debug after widget initialized, widget->style gets all the values stored correctly.
I register state-changed event which never fires when 'state' changed. And in enter, leave, push, release events, I checked widget->state is always 0. Continue checking...
Same thing if I put for example a image in the eventbox, image->state never updated also...
I'm using GTK 2.16, use GtkBuilder to load xml
so does gtk_widget_modify_bg(widget, GTK_STATE_ACTIVE, color) won't change for states besides 0 (NORMAL)