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:26:12 +0100
commitff82a62a8dbf4e49148f3752bb8573746040ce52 (patch)
tree66ac10760ec877364b461e9e3f2f3a06036e79f0
parent3c404f112096903ba3d9bc2f1eb91b36af0e29d5 (diff)
downloadyelp-ff82a62a8dbf4e49148f3752bb8573746040ce52.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 adb45c11..8957dc2c 100644
--- a/libyelp/yelp-settings.c
+++ b/libyelp/yelp-settings.c
@@ -957,7 +957,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);