aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2017-05-15 14:50:57 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-15 14:52:16 +0200
commitc2b69b84d7f698a5f4cc4aec29d6b131aba86ada (patch)
treeaab688029557702ffbe01602fb3140c07a2a1d67 /src
parent78ae40efc37aa630334e966b0ba4353b7522855c (diff)
downloadayatana-indicator-power-c2b69b84d7f698a5f4cc4aec29d6b131aba86ada.tar.gz
ayatana-indicator-power-c2b69b84d7f698a5f4cc4aec29d6b131aba86ada.tar.bz2
ayatana-indicator-power-c2b69b84d7f698a5f4cc4aec29d6b131aba86ada.zip
Fix the fallback power icon so the battery icon doesn't show red above 20% even when the Suru icon theme isn't present. Fixes: LP:#1559731.
Diffstat (limited to 'src')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 5597c37..bcb99db 100644
--- a/src/device.c
+++ b/src/device.c
@@ -340,7 +340,7 @@ get_fallback_device_icon_index (gdouble percentage)
if (percentage >= 90) return "100";
if (percentage >= 70) return "080";
if (percentage >= 50) return "060";
- if (percentage >= 30) return "040";
+ if (percentage > 20) return "040"; /* don't round down to 20: see bug #1559731 */
if (percentage >= 10) return "020";
return "000";
}