[Xfce4-commits] [panel-plugins/xfce4-battery-plugin] 01/01: Fix progressbar css styling with Gtk 3.20, and set min-width/height to 4px while here

noreply at xfce.org noreply at xfce.org
Sun Jun 19 15:08:59 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-battery-plugin.

commit 905decf4f9f935ba026998a3147d0371771b4dd1
Author: Landry Breuil <landry at xfce.org>
Date:   Sun Jun 19 15:08:21 2016 +0200

    Fix progressbar css styling with Gtk 3.20, and set min-width/height to 4px while here
---
 panel-plugin/battery.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/panel-plugin/battery.c b/panel-plugin/battery.c
index 4e39b42..180157c 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -600,7 +600,13 @@ battmon.c:241: for each function it appears in.)
     }
 
 #if GTK_CHECK_VERSION (3, 16, 0)
+#if GTK_CHECK_VERSION (3, 20, 0)
+    gchar *css = g_strdup_printf("progressbar trough { min-width: 4px; min-height: 4px; } \
+                                  progressbar progress { min-width: 4px; min-height: 4px; \
+                                                         background-color: %s; background-image: none; }",
+#else
     gchar *css = g_strdup_printf("progressbar progress { background-color: %s; background-image: none; }",
+#endif
                                  gdk_rgba_to_string(color));
     GtkCssProvider *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