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:
Diffstat (limited to 'shell/view/devices/battery.py')
-rw-r--r--shell/view/devices/battery.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/view/devices/battery.py b/shell/view/devices/battery.py
index 6a667a8..56e3ffb 100644
--- a/shell/view/devices/battery.py
+++ b/shell/view/devices/battery.py
@@ -7,7 +7,7 @@ class DeviceView(canvasicon.CanvasIcon):
canvasicon.CanvasIcon.__init__(self)
self._model = model
- model.connect('notify::strength', self._level_changed_cb)
+ model.connect('notify::level', self._level_changed_cb)
self._update_level()
@@ -15,6 +15,6 @@ class DeviceView(canvasicon.CanvasIcon):
self.props.icon_name = canvasicon.get_icon_state(
_ICON_NAME, self._model.props.level)
- def _level_changed_cb(self, pspec):
+ def _level_changed_cb(self, pspec, param):
self._update_level()