[gtk+] stylecontext: Stop animations on manual invalidation
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] stylecontext: Stop animations on manual invalidation
- Date: Sat, 10 Jan 2015 13:26:44 +0000 (UTC)
commit cec5815a0de9ba60417ed6611e9addcc3e85e9a2
Author: Benjamin Otte <otte redhat com>
Date: Sat Jan 10 13:58:39 2015 +0100
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.
gtk/gtkstylecontext.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 4e91e84..25385f0 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]