Fix a thinko in adjustment animation

The target value is only relevant if we're actually animating.
Don't look at it otherwise.

https://bugzilla.gnome.org/show_bug.cgi?id=736178
This commit is contained in:
Matthias Clasen 2014-09-07 22:45:08 -04:00
parent e2c54098da
commit 169ca5ad21

View File

@ -530,7 +530,7 @@ gtk_adjustment_set_value_internal (GtkAdjustment *adjustment,
if (animate && priv->duration != 0 && priv->clock != NULL) if (animate && priv->duration != 0 && priv->clock != NULL)
{ {
if (priv->target == value) if (priv->tick_id && priv->target == value)
return; return;
priv->source = priv->value; priv->source = priv->value;