GtkButton bg color

2012-04-29 Thread Steve
After scouring the books, documents, and various examples i still can't change the bg color of a gtk button. I've tried using a local rc file and various direct methods with code such as: gtk_widget_modify_bg(button, GTK_STATE_NORMAL, color); The documentation seems to suggest that i can change

Re: GtkButton bg color

2012-04-29 Thread Michael Cronenworth
On 04/29/2012 11:30 AM, Steve wrote: gtk_widget_modify_bg(button, GTK_STATE_NORMAL,color); This is the right call, but I have found that this doesn't work on Windows. Are you running the program in Windows? Coloring works fine for me in Linux. If you're running Linux, your color variable

Re: GtkButton bg color

2012-04-29 Thread Steve
I'm using linux. I've tried dozens of different methods and a few examples which seem to suggest that they will change the background but noting works. I scrapped all that code and started over from scratch. I can change the fg color with no problems but i can't seem to get anything to work with