forked from AuroraMiddleware/gtk
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:
parent
e2c54098da
commit
169ca5ad21
@ -530,7 +530,7 @@ gtk_adjustment_set_value_internal (GtkAdjustment *adjustment,
|
||||
|
||||
if (animate && priv->duration != 0 && priv->clock != NULL)
|
||||
{
|
||||
if (priv->target == value)
|
||||
if (priv->tick_id && priv->target == value)
|
||||
return;
|
||||
|
||||
priv->source = priv->value;
|
||||
|
Loading…
Reference in New Issue
Block a user