开发者

How to set color to every widget in GTK

开发者 https://www.devze.com 2022-12-19 20:14 出处:网络
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 availab

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

精彩评论

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

关注公众号