Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/devices/battery.py
diff options
context:
space:
mode:
authorDan Winship <dwinship@redhat.com>2007-08-24 13:07:28 (GMT)
committer Dan Winship <dwinship@redhat.com>2007-08-24 13:07:28 (GMT)
commit60cd7111c0d406f58a26fd5dc32440ebe941f88f (patch)
tree942fd573e1205adba67e4c86ae1111afbecf1327 /shell/view/devices/battery.py
parent1f129e613682501f2f683d219ef26f5364691479 (diff)
Use badge-charging on battery icon when charging. #722
Diffstat (limited to 'shell/view/devices/battery.py')
-rw-r--r--shell/view/devices/battery.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/view/devices/battery.py b/shell/view/devices/battery.py
index cdd2e78..5aafc5c 100644
--- a/shell/view/devices/battery.py
+++ b/shell/view/devices/battery.py
@@ -46,10 +46,13 @@ class DeviceView(canvasicon.CanvasIcon):
# Update palette
if self._model.props.charging:
status = _STATUS_CHARGING
+ self.props.badge_name = 'theme:badge-charging'
elif self._model.props.discharging:
status = _STATUS_DISCHARGING
+ self.props.badge_name = None
else:
status = _STATUS_FULLY_CHARGED
+ self.props.badge_name = None
self._palette.set_level(self._model.props.level)
self._palette.set_status(status)