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-07-31 14:46:06 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-07-31 14:46:06 (GMT)
commitb3f7e0e63241b8e4ea3f20924627578a9ddd136e (patch)
tree236632517d6b9ca72f1fb2807c5f9ad2c1e669d3 /shell/view/devices/battery.py
parent72d66793a73a3ca7924b09badb5d269b41d649a3 (diff)
Move from scaling to sizes in CanvasIcon.
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 adc84b0..16863d3 100644
--- a/shell/view/devices/battery.py
+++ b/shell/view/devices/battery.py
@@ -18,7 +18,7 @@ import gtk
from gettext import gettext as _
from sugar.graphics import canvasicon
-from sugar.graphics import units
+from sugar.graphics import style
from sugar.graphics.palette import Palette
_ICON_NAME = 'device-battery'
@@ -29,7 +29,7 @@ _STATUS_FULLY_CHARGED = 2
class DeviceView(canvasicon.CanvasIcon):
def __init__(self, model):
- canvasicon.CanvasIcon.__init__(self, scale=units.MEDIUM_ICON_SCALE)
+ canvasicon.CanvasIcon.__init__(self, size=style.MEDIUM_ICON_SIZE)
self._model = model
self._palette = BatteryPalette(_('My Battery life'))
self.set_palette(self._palette)