From 2db2ae531208cdb58c448f4bd4a91f8ea947066a Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 24 Dec 2006 11:19:24 +0000 Subject: Split model/view in the activities donut. Provide some infrastructure for Alt+Tab implementation. --- (limited to 'shell/view/home/HomeBox.py') diff --git a/shell/view/home/HomeBox.py b/shell/view/home/HomeBox.py index a24402d..48069ea 100644 --- a/shell/view/home/HomeBox.py +++ b/shell/view/home/HomeBox.py @@ -25,13 +25,12 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem): __gtype_name__ = 'SugarHomeBox' def __init__(self, shell): - hippo.CanvasBox.__init__(self, background_color=0xe2e2e2ff, - yalign=2) + hippo.CanvasBox.__init__(self, background_color=0xe2e2e2ff, yalign=2) grid = Grid() - donut = ActivitiesDonut(shell, box_width=grid.dimension(7), - box_height=grid.dimension(7)) - self.append(donut) + self._donut = ActivitiesDonut(shell, box_width=grid.dimension(7), + box_height=grid.dimension(7)) + self.append(self._donut) self._my_icon = MyIcon() style.apply_stylesheet(self._my_icon, 'home.MyIcon') @@ -43,3 +42,15 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem): [icon_width, icon_height] = self._my_icon.get_allocation() self.move(self._my_icon, (width - icon_width) / 2, (height - icon_height) / 2) + + def has_activities(self): + return self._donut.has_activities() + + def grab_and_rotate(self): + pass + + def rotate(self): + pass + + def release(self): + pass -- cgit v0.9.1