Re: Changing Spin Button and Adjustment




Thanks!

I knew there had to be a more direct way than creating a new adjustment.

PS. Sorry to the group about the double post--The first one got hung up because of the email address and then got released after the second one went through.

bc


On Sep 20, 2004, at 2:00 PM, John Cupitt wrote:

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.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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