Re: Changing Spin Button and Adjustment



On Sat, 18 Sep 2004 21:11:47 -0500, Brian Clark <bc shout net> wrote:
I have an adjustment for a spin button, and I want to change the upper
value of the spinner (and therefore adjustment) after the window has
already been created.

Is there a way to change it directly? 

Sure, just assign a new upper limit to adj->upper, then call
gtk_adjustment_changed( adj ). The adjustment will then signal
"changed" and all widgets using that adjustment will update
themselves. You can mess with sliders and scrollbars in the same way.



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