[Xfce4-commits] [panel-plugins/xfce4-netload-plugin] 01/01: Use color: inherit to reset label color to its default, thanks knome for the hint!
noreply at xfce.org
noreply at xfce.org
Sat May 14 16:23:39 CEST 2016
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository panel-plugins/xfce4-netload-plugin.
commit d776f762f2553540211e82783c2d0b57a23992af
Author: Landry Breuil <landry at xfce.org>
Date: Sat May 14 16:22:59 2016 +0200
Use color: inherit to reset label color to its default, thanks knome for the hint!
---
panel-plugin/netload.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c
index d0ac41c..eb050df 100644
--- a/panel-plugin/netload.c
+++ b/panel-plugin/netload.c
@@ -525,7 +525,11 @@ static void set_label_csscolor(GtkWidget* label, GdkRGBA* color)
}
else
{
- css = g_strdup_printf(".label { color: black; }");
+#if GTK_CHECK_VERSION (3, 20, 0)
+ css = g_strdup_printf("label { color: inherit; }");
+#else
+ css = g_strdup_printf(".label { color: inherit; }");
+#endif
}
css_provider = gtk_css_provider_new ();
gtk_css_provider_load_from_data (css_provider, css, strlen(css), NULL);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list