diff options
author | Benjamin Otte <otte@redhat.com> | 2015-02-07 19:03:37 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-03-18 15:23:30 +0100 |
commit | efda30c4956c129d975727d8ec658567b5195582 (patch) | |
tree | 7a021907f06d390b88f432341de83dbd055a4413 /gtk/gtkcsswidgetnode.c | |
parent | 020f3f11c801617b8acdba3dcbc852426aba848f (diff) | |
download | gtk+-efda30c4956c129d975727d8ec658567b5195582.tar.gz |
stylecontext: Don't queue animate tick callbacks anymore
Instead, just mark nodes permanently as invalid.
Diffstat (limited to 'gtk/gtkcsswidgetnode.c')
-rw-r--r-- | gtk/gtkcsswidgetnode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c index a684431e9e..d0ae3697fb 100644 --- a/gtk/gtkcsswidgetnode.c +++ b/gtk/gtkcsswidgetnode.c @@ -156,6 +156,10 @@ gtk_css_widget_node_validate (GtkCssNode *node, changes = gtk_css_style_get_difference (new_style, style); + if (GTK_IS_CSS_ANIMATED_STYLE (new_style) && + !gtk_css_animated_style_is_static (GTK_CSS_ANIMATED_STYLE (new_style))) + gtk_css_node_set_invalid (node, TRUE); + gtk_css_node_set_style (node, new_style); g_object_unref (new_style); |