Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-07-06 21:08:35 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-07-06 21:08:35 (GMT)
commit270bb8aaf6cb1724958b6e22a05eab42de0b3368 (patch)
tree4a01fddbc2a0a5011a80e0c3e567612d740ede6e /activities
parentfbb2621fffa6e1e7fc9338b9cb8ab5a789260429 (diff)
This should fix one-to-one chat, can't test now though
Diffstat (limited to 'activities')
-rw-r--r--activities/chat/ChatActivity.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/activities/chat/ChatActivity.py b/activities/chat/ChatActivity.py
index 694e100..8de01bb 100644
--- a/activities/chat/ChatActivity.py
+++ b/activities/chat/ChatActivity.py
@@ -50,15 +50,7 @@ class ChatShellDbusService(dbus.service.Object):
def open_chat(self, serialized_service):
self._parent.open_chat(Service.deserialize(serialized_service))
-class ChatShell:
- instance = None
-
- def get_instance():
- if not ChatShell.instance:
- ChatShell.instance = ChatShell()
- return ChatShell.instance
- get_instance = staticmethod(get_instance)
-
+class ChatListener:
def __init__(self):
ChatShellDbusService(self)
@@ -104,7 +96,6 @@ class ChatShell:
chat.connect_to_shell()
return False
-chat_shell = ChatShell.get_instance()
-chat_shell.start()
-
-gtk.main()
+def start():
+ chat_listener = ChatListener()
+ chat_listener.start()