So my problem is as follows - I need to create buttons in my GTK/C program that are simple clickable, colored tiles. I found this thread GTK Modifying Background Color of GtkButton and a few other resources that supply a very similar answer, but no matter what I do the set_fg function does nothing and set_bg function either sets a thin frame around the button/widget - which itself stays gray - or also does nothing. Can anyone please help me solve this problem or give me a reasonable alternative to creating a set of colored tiles that can be clicked on and that can dynamically change color?
Asked
Active
Viewed 665 times
1
-
1What version of GTK+? – andlabs Feb 08 '16 at 06:29
-
You will need to use CSS for GTK+ 3. Look at GtkStyleContext and GtkCssProvider. – andlabs Feb 14 '16 at 16:22