stylecontext: Don't queue animate tick callbacks anymore

Instead, just mark nodes permanently as invalid.
This commit is contained in:
Benjamin Otte
2015-02-07 19:03:37 +01:00
parent 020f3f11c8
commit efda30c495
5 changed files with 5 additions and 140 deletions

View File

@ -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);