diff options
author | Matt Watson <mattdangerw@gmail.com> | 2016-03-22 01:04:38 -0700 |
---|---|---|
committer | Matt Watson <mattdangerw@gmail.com> | 2016-04-08 16:09:30 -0700 |
commit | 7b68bdb8316fc1bb96c4a5ad16c1885506131d22 (patch) | |
tree | 2c9799d2d89f32f88fe7536ffbf6a3e37274a49c /gtk/gtkcssanimatedstyle.c | |
parent | 6a88ac3b4cfa8a56f0bbcec66ecb05079d1a4ccd (diff) | |
download | gtk+-7b68bdb8316fc1bb96c4a5ad16c1885506131d22.tar.gz |
animatedstyle: just ref current style if timestamp the same
Diffstat (limited to 'gtk/gtkcssanimatedstyle.c')
-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); |