Re: Changing Spin Button and Adjustment
- From: John Cupitt <jcupitt gmail com>
- To: Brian Clark <bc shout net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Changing Spin Button and Adjustment
- Date: Mon, 20 Sep 2004 20:00:32 +0100
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]