mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
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:
parent
9fcbae2d85
commit
cec5815a0d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user