[Xfce4-commits] [xfce/xfce4-power-manager] 41/64: Unknown state is unknown.

noreply at xfce.org noreply at xfce.org
Mon May 26 06:00:36 CEST 2014


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

eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit b06ea083263deecff445e2a8c0861f04445b001a
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Mon May 12 19:43:56 2014 +0300

    Unknown state is unknown.
    
    When upower reports unknown there is no useful information for the
    device so present that to the user rather than a 0% battery level.
---
 panel-plugins/battery/battery-button.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panel-plugins/battery/battery-button.c b/panel-plugins/battery/battery-button.c
index f7c3519..692a565 100644
--- a/panel-plugins/battery/battery-button.c
+++ b/panel-plugins/battery/battery-button.c
@@ -233,7 +233,7 @@ get_device_description (BatteryButton *button, UpDevice *device)
     else
     {
 	/* unknown device state, just display the percentage */
-	tip = g_strdup_printf (_("<b>%s %s</b>\t\nis at (%0.0f%%).\t"),
+	tip = g_strdup_printf (_("<b>%s %s</b>\t\nUnknown state.\t"),
 			       vendor, model,
 			       percentage);
     }

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


More information about the Xfce4-commits mailing list