[Xfce4-commits] [panel-plugins/xfce4-fsguard-plugin] 02/02: Add gtk<3.20 compatibility

noreply at xfce.org noreply at xfce.org
Fri Apr 29 09:32:34 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-fsguard-plugin.

commit 8a997179c7454f0429ebf40f7eff47640aad52e9
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Thu Apr 28 23:10:09 2016 +0200

    Add gtk<3.20 compatibility
    
    Signed-off-by: Landry Breuil <landry at xfce.org>
---
 panel-plugin/fsguard.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/panel-plugin/fsguard.c b/panel-plugin/fsguard.c
index 152e759..416212d 100644
--- a/panel-plugin/fsguard.c
+++ b/panel-plugin/fsguard.c
@@ -198,7 +198,11 @@ fsguard_refresh_monitor (FsGuard *fsguard)
 
 #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(&color));
+#else
+    gchar * css = g_strdup_printf(".progressbar { background-color: %s; background-image: none; }", gdk_rgba_to_string(&color));
+#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