[maemo-developers] How can I change the background color of a GtkButton when it is activated
From: Yao Wang yaowang.bupt at gmail.comDate: Tue Nov 25 10:19:09 EET 2008
- Previous message: Maemo & Linux mainstream again (was Re: Projects Nokia should support (yours?))
- Next message: How can I change the background color of a GtkButton when it is activated
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello everyone. I am developing a GUI application on maemo, in which GtkButton is used. 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. I tried to implemented it using the following code: GdkColor color; gdk_color_parse ("red", &color); gtk_widget_modify_bg(GTK_WIDGET(button), GTK_STATE_ACTIVE, &color); However, it dose not work at all. Could anyone kindly give me some advices or suggestions ? Thanks in advance. -- Sincerely yours, Yao Wang Mobile Life Lab Beijing University of Posts & Telecommunications -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20081125/5cb59ecd/attachment.htm
- Previous message: Maemo & Linux mainstream again (was Re: Projects Nokia should support (yours?))
- Next message: How can I change the background color of a GtkButton when it is activated
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]