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-02-19 16:53:03 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-02-19 16:53:03 (GMT)
commitd199e99514babd7325b6e20be34b763e573f1095 (patch)
tree8ff3c66b1e275b5583dc52593b459f048c6760b9 /shell/view/home/HomeBox.py
parent919445502d0e947f0a32543fa2b5b2e5ff69a8c3 (diff)
Do not use Grid here, use units
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 cca0355..7fef59a 100644
--- a/shell/view/home/HomeBox.py
+++ b/shell/view/home/HomeBox.py
@@ -19,8 +19,8 @@ import hippo
from view.home.activitiesdonut import ActivitiesDonut
from view.home.MyIcon import MyIcon
from model.ShellModel import ShellModel
-from sugar.graphics.grid import Grid
from sugar.graphics import style
+from sugar.graphics import units
from sugar.graphics.iconcolor import IconColor
class HomeBox(hippo.CanvasBox, hippo.CanvasItem):
@@ -29,9 +29,9 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem):
def __init__(self, shell):
hippo.CanvasBox.__init__(self, background_color=0xe2e2e2ff, yalign=2)
- grid = Grid()
- self._donut = ActivitiesDonut(shell, box_width=grid.dimension(7),
- box_height=grid.dimension(7))
+ self._donut = ActivitiesDonut(shell,
+ box_width=units.grid_to_pixels(7),
+ box_height=units.grid_to_pixels(7))
self.append(self._donut)
self._my_icon = MyIcon()