summaryrefslogtreecommitdiff
path: root/battstat/battstat_applet.c
diff options
context:
space:
mode:
authorr2rien <[email protected]>2014-01-04 14:57:10 +0100
committerr2rien <[email protected]>2014-01-04 14:57:10 +0100
commit78cb7f86c8695a69ad13a839ef97bda43838a6b0 (patch)
tree5619c579c5abe94554bd9ad831bf60327a2d7df9 /battstat/battstat_applet.c
parentd64ec1da62f34c0a51e5bced950b165ab9f60477 (diff)
downloadmate-applets-78cb7f86c8695a69ad13a839ef97bda43838a6b0.tar.bz2
mate-applets-78cb7f86c8695a69ad13a839ef97bda43838a6b0.tar.xz
battstat applet: save panel space using an empty label instead of -:-- when fully charged or unknown
Diffstat (limited to 'battstat/battstat_applet.c')
-rw-r--r--battstat/battstat_applet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c
index 6b049458..6a452433 100644
--- a/battstat/battstat_applet.c
+++ b/battstat/battstat_applet.c
@@ -854,9 +854,9 @@ update_percent_label( ProgressData *battstat, BatteryStatus *info )
new_label = g_strdup_printf ("%d%%", info->percent);
else if (info->present && battstat->showtext == APPLET_SHOW_TIME)
{
- /* Fully charged or unknown (-1) time remaining displays -:-- */
+ /* Fully charged or unknown (-1) time remaining display none */
if ((info->on_ac_power && info->percent == 100) || info->minutes < 0)
- new_label = g_strdup ("-:--");
+ new_label = g_strdup ("");
else
{
int time;