stylecontext: Make sure we always clear the cache when the CSS changes

After b49c7c3421 we were no longer doing a
full revalidate after GTK_CSS_CHANGE_SOURCE changes.

This fixes spurious failures of widgets not properly updating when
changing the theme.
This commit is contained in:
Benjamin Otte 2014-12-13 03:41:33 +01:00
parent 0dfbcd60c9
commit 1cb3734924

View File

@ -736,6 +736,8 @@ style_values_lookup (GtkStyleContext *context)
else
{
build_properties (context, values, info->decl, NULL, &priv->relevant_changes);
/* These flags are always relevant */
priv->relevant_changes |= GTK_CSS_CHANGE_SOURCE;
}
g_object_unref (values);