stylecontext: Stop animations on manual invalidation

If a gtk_style_context_invalidate() is called on a widget's style
context (which nobody should ever do, sheesh!) and we're animating, stop
the animations.

Fixes crashers in Nautilus.
This commit is contained in:
Benjamin Otte 2015-01-10 13:58:39 +01:00 committed by Rico Tzschichholz
parent 9fcbae2d85
commit cec5815a0d

View File

@ -3072,6 +3072,9 @@ gtk_style_context_invalidate (GtkStyleContext *context)
gtk_css_node_set_values (context->priv->cssnode, style);
g_object_unref (style);
if (!gtk_style_context_is_saved (context))
_gtk_style_context_update_animating (context);
changes = _gtk_bitmask_new ();
changes = _gtk_bitmask_invert_range (changes,
0,