From 1cb3734924cf09d38253878b6e3ec842afeaa4f3 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 13 Dec 2014 03:41:33 +0100 Subject: stylecontext: Make sure we always clear the cache when the CSS changes After b49c7c34214da2d8d5e6dae2e8d0b0fe1b23f68e 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. --- gtk/gtkstylecontext.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk/gtkstylecontext.c') diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index 6bd35c7554..77739972ec 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -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); -- cgit v1.2.1