Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/home/HomeBox.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-07-31 13:21:09 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-07-31 13:21:09 (GMT)
commit72d66793a73a3ca7924b09badb5d269b41d649a3 (patch)
tree77c248c5ae5af6e8cd8752d4bc7894863daf1dab /shell/view/home/HomeBox.py
parent2ae2279d94cc890ec769bdd5952254da601e0754 (diff)
Fix all the units except icon scales.
Diffstat (limited to 'shell/view/home/HomeBox.py')
-rw-r--r--shell/view/home/HomeBox.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/view/home/HomeBox.py b/shell/view/home/HomeBox.py
index c851d1c..fc1563a 100644
--- a/shell/view/home/HomeBox.py
+++ b/shell/view/home/HomeBox.py
@@ -25,6 +25,7 @@ import hippo
import dbus
from sugar.graphics import units
+from sugar.graphics import style
from sugar.graphics.xocolor import XoColor
from sugar.graphics.palette import Palette, CanvasInvoker
from sugar import profile
@@ -41,9 +42,8 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem):
def __init__(self, shell):
hippo.CanvasBox.__init__(self, background_color=0xe2e2e2ff, yalign=2)
- self._donut = ActivitiesDonut(shell,
- box_width=units.grid_to_pixels(6),
- box_height=units.grid_to_pixels(6))
+ self._donut = ActivitiesDonut(shell,box_width=style.zoom(450),
+ box_height=style.zoom(450))
self.append(self._donut)
self._my_icon = HomeMyIcon(shell, units.XLARGE_ICON_SCALE)
@@ -94,7 +94,7 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem):
i = 0
for icon in self._device_icons.values():
angle = 2 * math.pi / len(self._device_icons) * i + math.pi / 2
- radius = units.grid_to_pixels(4)
+ radius = style.zoom(300)
[icon_width, icon_height] = icon.get_allocation()