[gtk+/wip/watson/progress-tracker: 24/30] animatedstyle: just ref current style if timestamp the same
- From: Matthew Watson <watson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/watson/progress-tracker: 24/30] animatedstyle: just ref current style if timestamp the same
- Date: Wed, 30 Mar 2016 08:08:09 +0000 (UTC)
commit 7af389314efd8fe2de3b9161f5dfafa7df2c9c9c
Author: Matt Watson <mattdangerw gmail com>
Date: Tue Mar 22 01:04:38 2016 -0700
animatedstyle: just ref current style if timestamp the same
gtk/gtkcssanimatedstyle.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssanimatedstyle.c b/gtk/gtkcssanimatedstyle.c
index b72b65f..e4fc34c 100644
--- a/gtk/gtkcssanimatedstyle.c
+++ b/gtk/gtkcssanimatedstyle.c
@@ -460,7 +460,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]