Re: Set the background color in GTK1



Am Mo, den 19.04.2004 schrieb Chris Seaton um 22:21:
Kevin DeKorte wrote:
I have an application that I am working on that I need to set a GtkWidow's 
background color. I have been able to do this in GTK2 pretty easily, but how 
do I change in GTK1? I'm writing my app to work in both GTK1 and GTK2 because 
it is a mozilla plugin and mozilla ships in both flavors.

I can't help you, but I'm interested in why people are so interested in 
setting the background colour of widgets. It's always coming up! What's 
going on out there that people need to set the colour of their widgets 
to something other than what the user wants?

The program I'm writing has to drive two motors by the value of
"hscales". The user can toggle the active motor and hscale and this has
to be clearly visible. The definition of "clearly visible" is set to red
or green background for active and passive state.

My solution was to put it into the .rc and switch via the name of the
hscale widget.

Marc

P.S.: please don't CC me, I'm on the list.

-- 
Top 10 things likely to be overheard if you had a
Klingon Programmer:
  10) Specifications are for the weak and timid!
   6) Klingon function calls do not have 'parameters'
      - they have 'arguments'
   4) A TRUE Klingon Warrior does not comment his code!
   3) Klingon Software does NOT have BUGS. It has
      FEATURES, and those features are too sophisticated
      for you to understand.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]