More chat fixes...

This commit is contained in:
Marco Pesenti Gritti 2006-07-26 16:14:29 +02:00
parent f5b1be244f
commit 8444bd63d6
2 changed files with 2 additions and 7 deletions

View File

@ -14,7 +14,7 @@ from sugar.p2p.Stream import Stream
from sugar.presence.PresenceService import PresenceService
import sugar.env
_CHAT_ACTIVITY_TYPE = "_chat_activity_type._tcp"
_CHAT_ACTIVITY_TYPE = "_chat_activity._tcp"
class ChatActivity(Activity):
def __init__(self, service):
@ -78,13 +78,8 @@ class ChatListener:
service = self._pservice._new_object(service_path)
chat = ChatActivity(service)
self._chats[service.get_name()] = chat
gobject.idle_add(self._connect_chat, chat)
return chat
def _connect_chat(self, chat):
chat.connect_to_shell()
return False
def start():
chat_listener = ChatListener()
chat_listener.start()

View File

@ -2,4 +2,4 @@
name = Chat
id = com.redhat.Sugar.ChatActivity
python_module = ChatActivity.ChatActivity
default_type = _web_olpc._udp
default_type = _chat_activity._tcp