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

Re: narrowed down background color problem..



In a previous message, Scott. says:
> just a recap: after adding a toggle button to my program, specifying the
> GTK_STATE_ACTIVATE style to have a red background, every widget created
> after that one has a red background...
> 
> it looks like setting the toggle_button's background will cause every
> aft-created widget to bring up the same red background...
> 
> is there a way to isolate specifying the red-background for only the
> toggle buttons, and have every widget created afterwards be of the default
> style?

Don't change the default style.  Copy it to a newly allocated style, change
the background for the new style and then assign it to all your toggles
after they are created.  I don't think this can be done automatically (at
least not in the 1.0.x releases) so you'll have to manually switch to the
new style as you create each toggle.

Thats the theory.  I've not done anything like this yet, although I have
done a little work with styles for setting line drawing characteristics.
-- 
Michael J. Hammel           | I want to be a peripheral visionary.  I want to
The Graphics Muse           | see into the future, but only to the sides.
mjhammel@graphics-muse.org  |                Steven Wright
http://www.graphics-muse.org 



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