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
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to