[gtk+] stylecontext: Store the right style in the cache



commit 9ec28047756256ad396ccb318e214e13dd034af0
Author: Benjamin Otte <otte redhat com>
Date:   Mon Mar 9 23:53:43 2015 +0100

    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.

 gtk/gtkstylecontext.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 59e158f..4810486 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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]