[Xfce4-commits] [apps/xfce4-screensaver] 259/425: Gtk3, popsquares: use color from view style class for fallback
noreply at xfce.org
noreply at xfce.org
Mon Oct 15 01:51:46 CEST 2018
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screensaver.
commit 86bc5aaa1a8a4aefee2c675d83da055ea6e913b5
Author: Sorokin Alexei <sor.alexei at meowr.ru>
Date: Wed Jun 22 19:17:14 2016 +0300
Gtk3, popsquares: use color from view style class for fallback
---
savers/gste-popsquares.c | 9 ++++++---
1 file 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;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list