GtkScale/GtkRange: Wrap-around instead of truncate/clamp value outside limits?



Is there any way I can get a scale and/or range to "wrap-around" rather than switching to min or max when a value outside the defined range is passed to "set"?

I mean, if my widget allows input of values in the range [0, 100], and I pass the value 110, it will usually switch to the value 100. Or possibly 100 - <page size>, but you know what I mean... Can I get it to change the value to 10 instead, i.e. to essentially start counting from the beginning when the end is reached?

--
Toralf Lund




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