changing the bg color of a dial widget



Hi,
I want to change the bg color of a dial widget .
The following code
.....
myStyle = gtk_widget_get_style(dial);
myStyle->bg[GTK_STATE_NORMAL].red = X;
myStyle->bg[GTK_STATE_NORMAL].blue = Y;
myStyle->bg[GTK_STATE_NORMAL].green =Z;
gtk_widget_set_style(dial,myStyle);
....
works the first time (ie. when called from interface.c ) but doesn't work after that (ie. when called from callbacks.c)

Any help would be appreciated.

Thanks
Amir




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