From 818aca5aee3ec99b2b702de66851b04837ad8087 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 24 Nov 2010 22:56:53 +0100 Subject: [PATCH] GtkStyleContext: Only allow looping transitions for states being turned on. --- gtk/gtkstylecontext.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index cbb691a405..ba72fb7a27 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -2653,7 +2653,9 @@ gtk_style_context_notify_state_change (GtkStyleContext *context, gtk_timeline_set_loop (info->timeline, FALSE); } } - else if (!info) + else if (!info && + (!gtk_animation_description_get_loop (desc) || + state_value)) { info = animation_info_new (context, region_id, gtk_animation_description_get_duration (desc),