[Xfce4-commits] [panel-plugins/xfce4-diskperf-plugin] 01/01: set progressbar minimal width/height to 4px so that it looks like with gtk+2

noreply at xfce.org noreply at xfce.org
Sun Jun 19 15:01:44 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 2fd63ae4b850f0f9835778c63e70f6deb0e5168c
Author: Landry Breuil <landry at xfce.org>
Date:   Sun Jun 19 15:01:25 2016 +0200

    set progressbar minimal width/height to 4px so that it looks like with gtk+2
---
 panel-plugin/main.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 903cef8..8712aec 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -329,10 +329,13 @@ static int SetSingleBarColor (struct diskperf_t *p_poPlugin, int p_iBar)
 #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]));
+    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 { background-color: %s; background-image: none; }", gdk_rgba_to_string(&poConf->aoColor[p_iBar]));
+    gchar * css = g_strdup_printf(".progressbar { background-color: %s; background-image: none; }",
 #endif
+                                  gdk_rgba_to_string(&poConf->aoColor[p_iBar]));
     /* 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