not able to change color of widget

2013-10-31 Thread Mahesh Chaudhari
what am I doing wrong in Following Code : GtkWidget *button1;  void click_button1(GtkWidget *widget, gpointer data)  {    printf(I am in click_button\n);// able to print this    GdkColor color;    color.red = 27000;    color.green = 30325;    color.blue = 34181;   

Re: not able to change color of widget

2013-10-31 Thread Ruslan Kabatsayev
Hi, I've tried your code, it works for me. Did you try moving cursor out of the button after you click it? If the cursor is still inside, the button is in hovered state, not STATE_NORMAL. If it still doesn't work, then what widget theme do you use? Maybe it interferes with your actions (older