summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-11-24 22:56:53 +0100
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:43 +0100
commit818aca5aee3ec99b2b702de66851b04837ad8087 (patch)
treee5a6fe2b2cece164e08149220aa36e1bafbda93b /gtk/gtkstylecontext.c
parentad6da0cdb8701dc950c3066c4349b9edb399d2ba (diff)
downloadgtk+-818aca5aee3ec99b2b702de66851b04837ad8087.tar.gz
GtkStyleContext: Only allow looping transitions for states being turned on.
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c4
1 files changed, 3 insertions, 1 deletions
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),