diff options
author | Matt Watson <mattdangerw@gmail.com> | 2016-03-22 01:04:38 -0700 |
---|---|---|
committer | Matt Watson <mattdangerw@gmail.com> | 2016-04-06 15:40:53 -0700 |
commit | 945f4a45d5b36a7230a7f39a1a592d42ca32cf5a (patch) | |
tree | 87383de2330da37480c571cd3c7f0c3d112ab2cd | |
parent | e56a1ddce31ec743c97c13d792e9a45dafb06d22 (diff) | |
download | gtk+-945f4a45d5b36a7230a7f39a1a592d42ca32cf5a.tar.gz |
animatedstyle: just ref current style if timestamp the same
-rw-r--r-- | gtk/gtkcssanimatedstyle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssanimatedstyle.c b/gtk/gtkcssanimatedstyle.c index 04337e54c2..9847449f08 100644 --- a/gtk/gtkcssanimatedstyle.c +++ b/gtk/gtkcssanimatedstyle.c @@ -464,7 +464,7 @@ gtk_css_animated_style_new_advance (GtkCssAnimatedStyle *source, gtk_internal_return_val_if_fail (GTK_IS_CSS_ANIMATED_STYLE (source), NULL); gtk_internal_return_val_if_fail (GTK_IS_CSS_STYLE (base), NULL); - if (timestamp == 0) + if (timestamp == 0 || timestamp == source->current_time) return g_object_ref (source->style); gtk_internal_return_val_if_fail (timestamp > source->current_time, NULL); |