diff options
author | Matt Watson <mattdangerw@gmail.com> | 2016-03-22 00:54:11 -0700 |
---|---|---|
committer | Matt Watson <mattdangerw@gmail.com> | 2016-04-08 16:09:30 -0700 |
commit | 6a88ac3b4cfa8a56f0bbcec66ecb05079d1a4ccd (patch) | |
tree | 0fdc7f03aa32636de6b52f55fc16789202570fc1 /gtk/gtkcssanimatedstyle.c | |
parent | 2800b00e1d5d46f374d50c279eb16aebd521ca4e (diff) | |
download | gtk+-6a88ac3b4cfa8a56f0bbcec66ecb05079d1a4ccd.tar.gz |
animatedstyle: fail to create new style if timestamp goes backwards
With slowdown factor, we will only we be able to handle timestamps
that monotonically increase.
Diffstat (limited to 'gtk/gtkcssanimatedstyle.c')
-rw-r--r-- | gtk/gtkcssanimatedstyle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcssanimatedstyle.c b/gtk/gtkcssanimatedstyle.c index f0246e91cf..04337e54c2 100644 --- a/gtk/gtkcssanimatedstyle.c +++ b/gtk/gtkcssanimatedstyle.c @@ -467,6 +467,8 @@ gtk_css_animated_style_new_advance (GtkCssAnimatedStyle *source, if (timestamp == 0) return g_object_ref (source->style); + gtk_internal_return_val_if_fail (timestamp > source->current_time, NULL); + animations = NULL; for (l = source->animations; l; l = l->next) { |