[gtk+] animations: Start transitions from the current value



commit b454fc50edc2ea42931a84af2712d5f075b51e75
Author: Benjamin Otte <otte redhat com>
Date:   Fri Oct 5 18:49:39 2012 +0200

    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.

 gtk/gtkcsscomputedvalues.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcsscomputedvalues.c b/gtk/gtkcsscomputedvalues.c
index ff89eee..94115a5 100644
--- a/gtk/gtkcsscomputedvalues.c
+++ b/gtk/gtkcsscomputedvalues.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]