From: Matt Watson Date: Tue, 22 Mar 2016 08:04:38 +0000 (-0700) Subject: animatedstyle: just ref current style if timestamp the same X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~24^2~4966 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7b68bdb8316fc1bb96c4a5ad16c1885506131d22;p=gtk4.git animatedstyle: just ref current style if timestamp the same --- 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);