<div>Hello everyone.</div>
<div> I am developing a GUI application on maemo, in which GtkButton is used.<br> <br> The default color when I pressed down the button is blue. I want to change the background color of button when it is pressed and recover its origin background color when it is released. <br>
<br> I tried to implemented it using the following code:<br><div> <br> GdkColor color;<br><div style="margin-left: 40px;"> gdk_color_parse ("red", &color); <br> gtk_widget_modify_bg(GTK_WIDGET(button), GTK_STATE_ACTIVE, &color);<br>
<br></div> However, it dose not work at all. <br> Could anyone kindly give me some advices or suggestions ?<br> Thanks in advance.<br> <br></div>-- <br> Sincerely yours, <br><br>Yao Wang<br>
<br>Mobile Life Lab<br>Beijing University of Posts & Telecommunications<br></div>