Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/chat
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2006-04-25 17:13:23 (GMT)
committer Dan Williams <dcbw@redhat.com>2006-04-25 17:13:23 (GMT)
commited4fc948ca7f76bc30196b4686115f751edd660d (patch)
tree3d3c36d374a8bccd9fe512d7238dd72e0e0b5b4a /chat
parent897e0132afa27c534625bb204374c25651d22e57 (diff)
Make the on_button_close call asynchronous
Diffstat (limited to 'chat')
-rwxr-xr-xchat/chat.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/chat/chat.py b/chat/chat.py
index f4fab63..2abb2f1 100755
--- a/chat/chat.py
+++ b/chat/chat.py
@@ -79,7 +79,7 @@ class BuddyChat(Chat):
success = True
try:
peer.message(text)
- except (socket.error, xmlrpclib.Fault), e:
+ except socket.error, e:
msg = str(e)
success = False
self._local_message(success, msg)
@@ -366,10 +366,6 @@ class ChatActivity(activity.Activity):
# Clear the "new message" icon when the user activates the chat
aniter = self._get_iter_for_buddy(buddy)
- # Select the row in the list
- if aniter:
- selection = self._buddy_list_view.get_selection()
- selection.select_iter(aniter)
icon = self._buddy_list_model.get_value(aniter, self._MODEL_COL_ICON)
if icon == self._pixbuf_new_message:
self._buddy_list_model.set_value(aniter, self._MODEL_COL_ICON, self._pixbuf_active_chat)