Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/shellservice.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2008-04-02 12:53:52 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2008-04-02 12:53:52 (GMT)
commit14f1ca9b8491dee343305066facf8e7ae24e381f (patch)
tree2a387daf635cf21c2843cd18b29bc6f72d781d87 /src/shellservice.py
parentb8dd3afcb84f86a94c41b1e29a851515e0009690 (diff)
Make Frame, Shell and ShellModel singletons and remove all those references dragged around constructors.
Diffstat (limited to 'src/shellservice.py')
-rw-r--r--src/shellservice.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/shellservice.py b/src/shellservice.py
index 458f941..add49d8 100644
--- a/src/shellservice.py
+++ b/src/shellservice.py
@@ -18,6 +18,9 @@
import dbus
import os
+from view import Shell
+from model import shellmodel
+
_DBUS_SERVICE = "org.laptop.Shell"
_DBUS_SHELL_IFACE = "org.laptop.Shell"
_DBUS_OWNER_IFACE = "org.laptop.Shell.Owner"
@@ -46,9 +49,9 @@ class ShellService(dbus.service.Object):
_rainbow = None
- def __init__(self, shell):
- self._shell = shell
- self._shell_model = shell.get_model()
+ def __init__(self):
+ self._shell = Shell.get_instance()
+ self._shell_model = shellmodel.get_instance()
self._owner = self._shell_model.get_owner()
self._owner.connect('nick-changed', self._owner_nick_changed_cb)