[Xfce4-commits] [xfce/xfce4-power-manager] 29/64: Shorten device detail strings

noreply at xfce.org noreply at xfce.org
Mon May 26 06:00:24 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 83b67718cb95ba232d5e8db291fbc0accebbf9da
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Mon May 5 12:16:09 2014 +0300

    Shorten device detail strings
---
 panel-plugins/battery/battery-button.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/panel-plugins/battery/battery-button.c b/panel-plugins/battery/battery-button.c
index eae4ec4..2c28e4e 100644
--- a/panel-plugins/battery/battery-button.c
+++ b/panel-plugins/battery/battery-button.c
@@ -178,7 +178,7 @@ get_device_description (BatteryButton *button, UpDevice *device)
 	if ( time_to_empty > 0 )
 	{
 	    est_time_str = xfpm_battery_get_time_string (time_to_empty);
-	    tip = g_strdup_printf (_("<b>%s %s</b>\t\nFully charged (%0.0f%%).\t\nProvides %s runtime\t"),
+	    tip = g_strdup_printf (_("<b>%s %s</b>\t\nFully charged (%0.0f%%, %s runtime).\t"),
 				   vendor, model,
 				   percentage,
 				   est_time_str);
@@ -196,7 +196,7 @@ get_device_description (BatteryButton *button, UpDevice *device)
 	if ( time_to_full != 0 )
 	{
 	    est_time_str = xfpm_battery_get_time_string (time_to_full);
-	    tip = g_strdup_printf (_("<b>%s %s</b>\t\nCharging (%0.0f%%).\t\n%s until fully charged.\t"),
+	    tip = g_strdup_printf (_("<b>%s %s</b>\t\nCharging (%0.0f%%, %s).\t"),
 				   vendor, model,
 				   percentage,
 				   est_time_str);
@@ -214,7 +214,7 @@ get_device_description (BatteryButton *button, UpDevice *device)
 	if ( time_to_empty != 0 )
 	{
 	    est_time_str = xfpm_battery_get_time_string (time_to_empty);
-	    tip = g_strdup_printf (_("<b>%s %s</b>\t\nDischarging (%0.0f%%).\t\nEstimated time left is %s.\t"),
+	    tip = g_strdup_printf (_("<b>%s %s</b>\t\nDischarging (%0.0f%%, %s).\t"),
 				   vendor, model,
 				   percentage,
 				   est_time_str);

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


More information about the Xfce4-commits mailing list