Re: GTK signals question.



On Wed, Mar 5, 2014 at 6:20 PM, Chris Moller <moller mollerware com> wrote:
No, they're not the same value.  They're all for setting an angle, in
radians, pi-radians, and degrees, and I want the user to be able to set the
angle in any unit and have the equivalent angle in the other units show up
in the other spinbuttons.

Ah, okay. Same consideration does apply, though - if you query first
and then set, you avoid spurious signal delivery much more
conveniently than fiddling with signal blocking.

In the specific case cited, Tristan's solution is likely what you
want, but for generalities, the "query-before-set" model is always
there as a fall-back.

ChrisA


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