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 <marco@localhost.localdomain>2006-12-24 11:19:24 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-12-24 11:19:24 (GMT)
commit2db2ae531208cdb58c448f4bd4a91f8ea947066a (patch)
tree8d33d097ab4717ad47d469460320bcbfc918be5e /shell/view/home/HomeBox.py
parentdb6f615198b0041dbf860b5e92b846545baea846 (diff)
Split model/view in the activities donut.
Provide some infrastructure for Alt+Tab implementation.
Diffstat (limited to 'shell/view/home/HomeBox.py')
-rw-r--r--shell/view/home/HomeBox.py21
1 files changed, 16 insertions, 5 deletions
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