summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-03-09 23:53:43 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-09 23:54:41 +0100
commit9ec28047756256ad396ccb318e214e13dd034af0 (patch)
tree71e0525a6bca0b4b96f8cbdedc83eec39704a641
parentf8eac08a0a51de76864afb03eb6b3d857d6a6d40 (diff)
downloadgtk+-9ec28047756256ad396ccb318e214e13dd034af0.tar.gz
stylecontext: Store the right style in the cache
Store the newly computed style, not the old and wrong one. Fixes HighContrast menuitem color sometimes being black-on-black for selected items.
-rw-r--r--gtk/gtkstylecontext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 59e158fba8..481048651f 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -829,7 +829,7 @@ update_properties (GtkStyleContext *context,
gtk_widget_path_free (path);
- store_in_global_parent_cache (context, parent, decl, style);
+ store_in_global_parent_cache (context, parent, decl, result);
return result;
}