forked from AuroraMiddleware/gtk
GtkStyleContext: Only allow looping transitions for states being turned on.
This commit is contained in:
parent
ad6da0cdb8
commit
818aca5aee
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user