Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/chat/Chat.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-06-18 19:13:50 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-06-18 19:13:50 (GMT)
commit3fe0d7a5808b025c8eea3a99ef1c0dcafe2987a1 (patch)
treeb8635faf1362b23316c938448c8112dabdd553f1 /sugar/chat/Chat.py
parentbe051b2726ee76d0a0f28affef7a0146832b3067 (diff)
Get sketches back to work, add a send button
Diffstat (limited to 'sugar/chat/Chat.py')
-rw-r--r--sugar/chat/Chat.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sugar/chat/Chat.py b/sugar/chat/Chat.py
index 5d34e44..fa8c012 100644
--- a/sugar/chat/Chat.py
+++ b/sugar/chat/Chat.py
@@ -131,7 +131,7 @@ class Chat(gtk.VBox):
self._message_inserted()
- def _insert_sketch(self, nick, svgdata):
+ def _insert_sketch(self, buddy, svgdata):
"""Insert a sketch object into the chat buffer."""
pbl = gtk.gdk.PixbufLoader("svg")
pbl.write(svgdata)
@@ -140,7 +140,7 @@ class Chat(gtk.VBox):
buf = self._chat_view.get_buffer()
- self._insert_buddy(buf, nick)
+ self._insert_buddy(buf, buddy)
rise = int(pbuf.get_height() / 3) * -1
sha_hash = sha.new()
@@ -218,7 +218,7 @@ class Chat(gtk.VBox):
return
self._stream_writer.write(self.serialize_message(svgdata))
owner = PresenceService.get_instance().get_owner()
- self._insert_sketch(owner.get_nick_name(), svgdata)
+ self._insert_sketch(owner, svgdata)
def send_text_message(self, text):
"""Send a chat message and insert it into the local buffer."""