summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index eeb30224cb..4e91e843ee 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -2842,7 +2842,7 @@ gtk_style_context_update_cache (GtkStyleContext *context,
GtkCssStyle *parent;
gpointer key, value;
- if (_gtk_bitmask_is_empty (parent_changes))
+ if (change == 0 && _gtk_bitmask_is_empty (parent_changes))
return;
priv = context->priv;
@@ -2951,6 +2951,8 @@ _gtk_style_context_validate (GtkStyleContext *context,
g_object_unref (static_style);
g_object_unref (style);
+
+ gtk_style_context_clear_cache (context);
}
else
{