changing the bg color of a dial widget
- From: Amir Tsvitov <amir tsvitov timesys com>
- To: gtk-list gnome org
- Subject: changing the bg color of a dial widget
- Date: Fri, 04 Jan 2002 15:22:27 -0500
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]