开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜