Re: [gtk-list] Dynamic Style/Color change - I don't find the solution...



On Mon, 6 Jul 1998, Georg Greve wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> 
> Hi !
> 
> I am trying to make my program change the style of some widgets
> dynamically during runtime (_while_ displaying them).
> 
> What I do right now is that I create new styles for these widgets by
> gtk_style_copy of the standard style. Then I attach it to the widget
> by gtk_widget_set_style - so far so good... 
> 
> When I want to change the color I just can't get it to work.
> 
> I tried to set the colors directly (no effect), tried to detach the
> style, change the colors, attach it again (no effect) and lots of
> combinations of functions that looked like they might have
> something to do with it - the program either crashed or there was no
> effect.

could you provide a small example snippet?
your approach seems to be correct, and you should really not get a segfault
with this.

> 
> By now I am rather clueless and I would REALLY appreciate a good
> hint...
> 
> Later,
> 	Georg

---
ciaoTJ



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