diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-04-02 12:53:52 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-04-02 12:53:52 (GMT) |
commit | 14f1ca9b8491dee343305066facf8e7ae24e381f (patch) | |
tree | 2a387daf635cf21c2843cd18b29bc6f72d781d87 /src/view/home/HomeBox.py | |
parent | b8dd3afcb84f86a94c41b1e29a851515e0009690 (diff) |
Make Frame, Shell and ShellModel singletons and remove all those references dragged around constructors.
Diffstat (limited to 'src/view/home/HomeBox.py')
-rw-r--r-- | src/view/home/HomeBox.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/view/home/HomeBox.py b/src/view/home/HomeBox.py index 76fc9b1..39c24a4 100644 --- a/src/view/home/HomeBox.py +++ b/src/view/home/HomeBox.py @@ -33,10 +33,9 @@ _LIST_VIEW = 1 class HomeBox(hippo.CanvasBox, hippo.CanvasItem): __gtype_name__ = 'SugarHomeBox' - def __init__(self, shell): + def __init__(self): hippo.CanvasBox.__init__(self) - self._shell = shell self._ring_view = None self._list_view = None self._enable_xo_palette = False @@ -57,7 +56,7 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem): self.remove(self._list_view) if self._ring_view is None: - self._ring_view = ActivitiesRing(self._shell) + self._ring_view = ActivitiesRing() if self._enable_xo_palette: self._ring_view.enable_xo_palette() @@ -68,7 +67,7 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem): self.remove(self._ring_view) if self._list_view is None: - self._list_view = ActivitiesList(self._shell) + self._list_view = ActivitiesList() self.append(self._list_view, hippo.PACK_EXPAND) else: |