Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/home/HomeWindow.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/home/HomeWindow.py
parent72d66793a73a3ca7924b09badb5d269b41d649a3 (diff)
Move from scaling to sizes in CanvasIcon.
Diffstat (limited to 'shell/view/home/HomeWindow.py')
-rw-r--r--shell/view/home/HomeWindow.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/view/home/HomeWindow.py b/shell/view/home/HomeWindow.py
index 61c6203..ce8fe74 100644
--- a/shell/view/home/HomeWindow.py
+++ b/shell/view/home/HomeWindow.py
@@ -18,7 +18,7 @@ import gtk
import hippo
import cairo
-from sugar.graphics import units
+from sugar.graphics import style
from view.home.MeshBox import MeshBox
from view.home.HomeBox import HomeBox
@@ -113,13 +113,13 @@ class HomeWindow(gtk.Window):
self._canvas.set_root(self._transition_box)
if level == ShellModel.ZOOM_HOME:
- scale = units.XLARGE_ICON_SCALE
+ size = style.XLARGE_ICON_SIZE
elif level == ShellModel.ZOOM_FRIENDS:
- scale = units.LARGE_ICON_SCALE
+ size = style.LARGE_ICON_SIZE
elif level == ShellModel.ZOOM_MESH:
- scale = units.STANDARD_ICON_SCALE
+ size = style.STANDARD_ICON_SIZE
- self._transition_box.set_scale(scale)
+ self._transition_box.set_size(size)
def _transition_completed_cb(self, transition_box):
if self._level == ShellModel.ZOOM_HOME: