aboutsummaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorRicardo Salveti de Araujo <ricardo.salveti@canonical.com>2014-01-27 05:58:04 +0000
committerTarmac <Unknown>2014-01-27 05:58:04 +0000
commita98a7c1bab25421c8aafbf20a99b83aeb6856ded (patch)
tree46674490dde1ef26b95107b13adbde4899e2dc58 /src/device.c
parent2d54e43b981c1e8d58b00d93386862251538ffda (diff)
parent90bce0b06e4748b1e4134d314a880482f4dff655 (diff)
downloadayatana-indicator-power-a98a7c1bab25421c8aafbf20a99b83aeb6856ded.tar.gz
ayatana-indicator-power-a98a7c1bab25421c8aafbf20a99b83aeb6856ded.tar.bz2
ayatana-indicator-power-a98a7c1bab25421c8aafbf20a99b83aeb6856ded.zip
device.c: pending_charge means not charging.
Approved by Charles Kerr, PS Jenkins bot.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 508a734..7f1b14f 100644
--- a/src/device.c
+++ b/src/device.c
@@ -385,7 +385,6 @@ indicator_power_device_get_icon_names (const IndicatorPowerDevice * device)
break;
case UP_DEVICE_STATE_CHARGING:
- case UP_DEVICE_STATE_PENDING_CHARGE:
suffix_str = get_device_icon_suffix (percentage);
index_str = get_device_icon_index (percentage);
g_ptr_array_add (names, g_strdup_printf ("%s-%s-charging-symbolic", kind_str, suffix_str));
@@ -393,6 +392,7 @@ indicator_power_device_get_icon_names (const IndicatorPowerDevice * device)
g_ptr_array_add (names, g_strdup_printf ("%s-%s-charging", kind_str, suffix_str));
break;
+ case UP_DEVICE_STATE_PENDING_CHARGE:
case UP_DEVICE_STATE_DISCHARGING:
case UP_DEVICE_STATE_PENDING_DISCHARGE:
/* Don't show the caution/red icons unless we have <=30 min left.