summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2015-05-27 11:03:15 +0200
committerDavid King <amigadave@amigadave.com>2015-06-23 10:27:30 +0100
commit602c61d36820d117ef1d5b96458d78b8b7a48e6d (patch)
tree78d96992268b9cd959aae114799dc8e0dba7b2e2
parent37da1eb6c7de4b5f78deb16e14d4032f15bb6344 (diff)
downloadyelp-602c61d36820d117ef1d5b96458d78b8b7a48e6d.tar.gz
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
-rw-r--r--libyelp/yelp-settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libyelp/yelp-settings.c b/libyelp/yelp-settings.c
index 2fe31437..5dabcb3e 100644
--- a/libyelp/yelp-settings.c
+++ b/libyelp/yelp-settings.c
@@ -910,7 +910,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);