[yelp/gnome-3-16] yelp-settings: don't use ACTIVE background color



commit 5e522a1e03ceb69517d4d2e6499f993e43453822
Author: Lars Uebernickel <lars uebernickel canonical com>
Date:   Wed May 27 11:03:15 2015 +0200

    yelp-settings: don't use ACTIVE background color
    
    GTK_STATE_FLAG_ACTIVE is meant for depressed buttons or the currently
    selected row in a list box.
    
    It did use NORMAL prior to b6ac534.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749947

 libyelp/yelp-settings.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-settings.c b/libyelp/yelp-settings.c
index 866cb1d..c29e7b9 100644
--- a/libyelp/yelp-settings.c
+++ b/libyelp/yelp-settings.c
@@ -897,7 +897,7 @@ gtk_theme_changed (GtkSettings  *gtk_settings,
     linkcontext = gtk_widget_get_style_context (tmplink);
 
     gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &text);
-    gtk_style_context_get_background_color (context, GTK_STATE_FLAG_ACTIVE, &base);
+    gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &base);
 
     rgb_to_hsv (text, &text_h, &text_s, &text_v);
     rgb_to_hsv (base, &base_h, &base_s, &base_v);


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