[Xfce4-commits] [panel-plugins/xfce4-battery-plugin] 01/01: use dashes to show that we have no value instead of showing wrong bogus values (#9594)

noreply at xfce.org noreply at xfce.org
Thu Nov 29 18:20:12 CET 2018


This is an automated email from the git hooks/post-receive script.

l   a   n   d   r   y       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-battery-plugin.

commit 434e724e10b82b91c52a93c89379d71dc3464cf1
Author: Landry Breuil <landry at xfce.org>
Date:   Thu Nov 29 18:18:40 2018 +0100

    use dashes to show that we have no value instead of showing wrong bogus values (#9594)
---
 panel-plugin/battery.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/panel-plugin/battery.c b/panel-plugin/battery.c
index 1fb5e91..b081bbd 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -706,10 +706,10 @@ static void setup_battmon(t_battmon *battmon)
     gtk_container_add (GTK_CONTAINER(battmon->timechargealignment), battmon->timechargebox);
     gtk_box_pack_start(GTK_BOX(battmon->ebox), battmon->timechargealignment, FALSE, FALSE, 2);
 
-    battmon->charge = (GtkLabel *)gtk_label_new("50%%");
+    battmon->charge = (GtkLabel *)gtk_label_new("--");
     gtk_box_pack_start(GTK_BOX(battmon->timechargebox),GTK_WIDGET(battmon->charge),TRUE, TRUE, 0);
 
-    battmon->rtime = (GtkLabel *)gtk_label_new("01:00");
+    battmon->rtime = (GtkLabel *)gtk_label_new("--");
     gtk_box_pack_start(GTK_BOX(battmon->timechargebox),GTK_WIDGET(battmon->rtime),TRUE, TRUE, 0);
 
     /* ac-fan-temp */
@@ -724,10 +724,10 @@ static void setup_battmon(t_battmon *battmon)
     gtk_container_add (GTK_CONTAINER(battmon->actempalignment), battmon->actempbox);
     gtk_box_pack_start(GTK_BOX(battmon->ebox), battmon->actempalignment, FALSE, FALSE, 2);
 
-    battmon->acfan = (GtkLabel *)gtk_label_new("AC FAN");
+    battmon->acfan = (GtkLabel *)gtk_label_new("--");
     gtk_box_pack_start(GTK_BOX(battmon->actempbox),GTK_WIDGET(battmon->acfan),TRUE, TRUE, 0);
 
-    battmon->temp = (GtkLabel *)gtk_label_new("40°C");
+    battmon->temp = (GtkLabel *)gtk_label_new("--");
     gtk_box_pack_start(GTK_BOX(battmon->actempbox),GTK_WIDGET(battmon->temp),TRUE, TRUE, 0);
 
     gtk_widget_show_all(battmon->ebox);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list