Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/chat/ChatEditor.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2006-06-18 07:00:23 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2006-06-18 07:00:23 (GMT)
commit51ea9eedba1891abdc004433bfe29a4ae3cc50b1 (patch)
treef969b23b049a3188a52a10c8f2dc9ee0f8938116 /sugar/chat/ChatEditor.py
parentbc43e25e107f8737342db295d165ba30b0b2c46d (diff)
Get chat back to work. Well except it get very confused
if users have the same ip address. Dan I commented out the service deserialization in BrowserShell because it was not really working (also there was a few typos in that code)
Diffstat (limited to 'sugar/chat/ChatEditor.py')
-rw-r--r--sugar/chat/ChatEditor.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sugar/chat/ChatEditor.py b/sugar/chat/ChatEditor.py
index c2a57c1..da16a7a 100644
--- a/sugar/chat/ChatEditor.py
+++ b/sugar/chat/ChatEditor.py
@@ -6,8 +6,10 @@ from sugar.chat.sketchpad.SketchPad import SketchPad
import richtext
class ChatEditor(gtk.Notebook):
- def __init__(self):
+ def __init__(self, chat):
gtk.Notebook.__init__(self)
+
+ self._chat = chat
self.set_show_tabs(False)
self.set_show_border(False)
@@ -40,7 +42,7 @@ class ChatEditor(gtk.Notebook):
if len(text.strip()) > 0:
serializer = richtext.RichTextSerializer()
text = serializer.serialize(buf)
- self.send_text_message(text)
+ self._chat.send_text_message(text)
buf.set_text("")
buf.place_cursor(buf.get_start_iter())