diff options
author | Benjamin Otte <otte@redhat.com> | 2014-12-13 03:41:33 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-12-13 03:45:08 +0100 |
commit | 1cb3734924cf09d38253878b6e3ec842afeaa4f3 (patch) | |
tree | 99a205b9127eda3dcd2fc09b4c102239b69cd560 /gtk | |
parent | 0dfbcd60c9e830aa5e8a4f880b3910aa1f88a323 (diff) | |
download | gtk+-1cb3734924cf09d38253878b6e3ec842afeaa4f3.tar.gz |
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.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkstylecontext.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |