summaryrefslogtreecommitdiff
path: root/savers/gste-popsquares.c
diff options
context:
space:
mode:
Diffstat (limited to 'savers/gste-popsquares.c')
-rw-r--r--savers/gste-popsquares.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/savers/gste-popsquares.c b/savers/gste-popsquares.c
index d25bc16..b0f8cd2 100644
--- a/savers/gste-popsquares.c
+++ b/savers/gste-popsquares.c
@@ -344,9 +344,12 @@ set_colors (GtkWidget *widget,
gtk_style_context_get_state (style),
bg);
if (bg->alpha == 0.0)
- gtk_style_context_get_color (style,
- gtk_style_context_get_state (style),
- bg);
+ {
+ gtk_style_context_add_class (style, GTK_STYLE_CLASS_VIEW);
+ gtk_style_context_get_background_color (style,
+ gtk_style_context_get_state (style),
+ bg);
+ }
gtk_style_context_restore (style);
fg->red = bg->red * 0.7;