diff options
author | Matt Watson <mattdangerw@gmail.com> | 2016-03-22 01:10:21 -0700 |
---|---|---|
committer | Matt Watson <mattdangerw@gmail.com> | 2016-04-08 16:09:30 -0700 |
commit | a970ba5ef673c448775480fe76f363ae50ffaaec (patch) | |
tree | 1db46217a82ac14d3fca33153fe82a4f197a2c38 /gtk/gtkcssanimationprivate.h | |
parent | 7b68bdb8316fc1bb96c4a5ad16c1885506131d22 (diff) | |
download | gtk+-a970ba5ef673c448775480fe76f363ae50ffaaec.tar.gz |
animatedstyle: don't share styleanimations
Because of our port of css animation and css transition to
progress tracker, we should not think of animated styles as
immutable objects that can map any timestamp to css values.
Rather, timestamps can correspond to different values depending
on the value of GTK_SLOWDOWN over the course of the animation.
To keep animated styles and style animations totally immutable,
we will not share styleanimations between animatedstyles, and
make a new copy of a styleanimation for each timestamp.
Diffstat (limited to 'gtk/gtkcssanimationprivate.h')
-rw-r--r-- | gtk/gtkcssanimationprivate.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkcssanimationprivate.h b/gtk/gtkcssanimationprivate.h index c0d6fa2c1b..811cddfcce 100644 --- a/gtk/gtkcssanimationprivate.h +++ b/gtk/gtkcssanimationprivate.h @@ -68,8 +68,9 @@ GtkStyleAnimation * _gtk_css_animation_new (const char * GtkCssFillMode fill_mode, double iteration_count); -GtkStyleAnimation * _gtk_css_animation_copy (GtkCssAnimation *animation, - GtkCssPlayState play_state); +GtkStyleAnimation * _gtk_css_animation_advance_with_play_state (GtkCssAnimation *animation, + gint64 timestamp, + GtkCssPlayState play_state); const char * _gtk_css_animation_get_name (GtkCssAnimation *animation); |