summaryrefslogtreecommitdiff
path: root/savers/gste-popsquares.c
diff options
context:
space:
mode:
authorSorokin Alexei <[email protected]>2016-06-22 19:17:14 +0300
committerSorokin Alexei <[email protected]>2016-06-22 19:17:14 +0300
commit86bc5aaa1a8a4aefee2c675d83da055ea6e913b5 (patch)
treef6288f578ab145530d5bbabae38d5a9caf062416 /savers/gste-popsquares.c
parent5088db97655b97ff888cb5b485cf7c88f6e8e61f (diff)
downloadmate-screensaver-86bc5aaa1a8a4aefee2c675d83da055ea6e913b5.tar.bz2
mate-screensaver-86bc5aaa1a8a4aefee2c675d83da055ea6e913b5.tar.xz
Gtk3, popsquares: use color from view style class for fallback
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;