balance-scale: Only set new value after timeout (fixes zoom)
authorLuciana Fujii Pontello <luciana.fujii@collabora.co.uk>
Tue, 7 Jun 2011 22:53:34 +0000 (19:53 -0300)
committerLuciana Fujii Pontello <luciana.fujii@collabora.co.uk>
Wed, 8 Jun 2011 03:02:36 +0000 (00:02 -0300)
commit0192964e7a6dcbd07adb39f8252d9deeb37f6b65
tree5ebeb1f4b4b9b5f419e2f4b4e4aa8c0494b4b5bf
parent97f2c1320c3e742415a667d06b2c94c85eb0d1da
balance-scale: Only set new value after timeout (fixes zoom)

Only sets a new value if it hasn't changed again after 50 miliseconds,
avoiding setting multiple values in very small intervals. In case the
value keeps changing, it sets the new value every 0.3 seconds.

This fixes setting zoom property, that used to hang when it was set too
many times.
src/cheese-prefs-balance-scale.c