From 86bc5aaa1a8a4aefee2c675d83da055ea6e913b5 Mon Sep 17 00:00:00 2001 From: Sorokin Alexei Date: Wed, 22 Jun 2016 19:17:14 +0300 Subject: Gtk3, popsquares: use color from view style class for fallback --- savers/gste-popsquares.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'savers') 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; -- cgit v1.2.1