animations: Start transitions from the current value

... instead of from the intrinsic value. This way, we respect running
animations.

Note that the concept of "reversing" transitions is not implemented yet.
This commit is contained in:
Benjamin Otte
2012-10-05 18:49:39 +02:00
parent 55ade04e11
commit b454fc50ed

View File

@ -411,7 +411,7 @@ gtk_css_computed_values_create_css_transitions (GtkCssComputedValues *values,
else
{
animation = _gtk_css_transition_new (i,
start,
_gtk_css_computed_values_get_value (source, i),
_gtk_css_array_value_get_nth (timing_functions, i),
timestamp + delay * G_USEC_PER_SEC,
timestamp + (delay + duration) * G_USEC_PER_SEC);