Web lists-archives.com

Set background color to ToggleButton




Hi, I'm writing a simple GTK# application trying to change the background color to a ToggleButton:

            ToggleButton firstButton = new ToggleButton ("Push me", targetColor);
            firstButton.ModifyBg (StateType.Active, targetColor);

However, the background color does not change when it's pushed.

Do you know how can I change the toggle's background color when the button is pushed?

Thanks in advance.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list