tags:

views:

38

answers:

1

I am BE student.In my BE project i m using GTK.. I want C code for setting color of every widget in GTK . Plase help me out

A: 

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.

unwind