]> Pileus Git - ~andy/gtk/commitdiff
animations: Start transitions from the current value
authorBenjamin Otte <otte@redhat.com>
Fri, 5 Oct 2012 16:49:39 +0000 (18:49 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 6 Oct 2012 19:55:53 +0000 (15:55 -0400)
... instead of from the intrinsic value. This way, we respect running
animations.

Note that the concept of "reversing" transitions is not implemented yet.

gtk/gtkcsscomputedvalues.c

index ff89eee881379e1f7f058efc8bb4ecd148a50085..94115a587060224b52c1fe7b23608e3358d88616 100644 (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);