From 8ee2dcc7ba92666b0bf1cc32a5ded1a3883c471e Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 25 Apr 2006 17:14:20 +0000 Subject: foo --- (limited to 'chat') diff --git a/chat/chat.py b/chat/chat.py index 2abb2f1..f4fab63 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, e: + except (socket.error, xmlrpclib.Fault), e: msg = str(e) success = False self._local_message(success, msg) @@ -366,6 +366,10 @@ 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) -- cgit v0.9.1