How to set color to every widget in GTK
I want C code for setting color of every widget开发者_JAVA技巧 in GTK.
You should avoid hardcoding colors of GTK+ widgets from the code. See for instance this article for some discussion of the available methods.
This blog post explains why sometimes, you simply can't (not all widgets actually render to "their" background pixels).
I think you should consider re-designing your application so you don't need to hardcode the widget colors, or see if the RC-based route can work for you.
精彩评论