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:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-02-28 14:42:41 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-02-28 14:42:41 (GMT)
commitaec4fcf874f7262a63bd08368d4cf3c16b122f44 (patch)
tree2d5c99a2d496be5209ba9020b6863ab72d959b5d /shell/view/devices/battery.py
parent0f1adfe1de7f51562a4429c47f0674becd8b5f56 (diff)
More work on devices, getting there
Diffstat (limited to 'shell/view/devices/battery.py')
-rw-r--r--shell/view/devices/battery.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/view/devices/battery.py b/shell/view/devices/battery.py
index a13304e..332590a 100644
--- a/shell/view/devices/battery.py
+++ b/shell/view/devices/battery.py
@@ -1,6 +1,11 @@
from view.devices import deviceview
+from sugar.graphics import canvasicon
+
+_ICON_NAME = 'device-battery'
class DeviceView(deviceview.DeviceView):
def __init__(self, model):
deviceview.DeviceView.__init__(self, model)
- self.props.icon_name = 'theme:stock-close'
+
+ icon_name = canvasicon.get_icon_state(_ICON_NAME, 60)
+ self.props.icon_name = icon_name