[Xfce4-commits] [panel-plugins/xfce4-diskperf-plugin] 01/01: Add gtk<3.20 compatibility as was done in fsguard plugin

noreply at xfce.org noreply at xfce.org
Fri Apr 29 09:30:00 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-diskperf-plugin.

commit 7dbd02d6f6de61869b77816c3b8cfaa86c11c8ce
Author: Landry Breuil <landry at xfce.org>
Date:   Fri Apr 29 09:29:27 2016 +0200

    Add gtk<3.20 compatibility as was done in fsguard plugin
---
 panel-plugin/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 7c3f0c1..903cef8 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -328,7 +328,11 @@ static int SetSingleBarColor (struct diskperf_t *p_poPlugin, int p_iBar)
     pwBar = poMonitor->aoPerfBar[p_iBar].pwBar;
 #if GTK_CHECK_VERSION (3, 16, 0)
     GtkCssProvider *css_provider;
+#if GTK_CHECK_VERSION (3, 20, 0)
     gchar * css = g_strdup_printf("progressbar progress { background-color: %s; background-image: none; }", gdk_rgba_to_string(&poConf->aoColor[p_iBar]));
+#else
+    gchar * css = g_strdup_printf(".progressbar { background-color: %s; background-image: none; }", gdk_rgba_to_string(&poConf->aoColor[p_iBar]));
+#endif
     /* Setup Gtk style */
     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