diff options
author | Dan Williams <dcbw@redhat.com> | 2006-04-25 15:57:33 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2006-04-25 15:57:33 (GMT) |
commit | 0aa037dbee413fcc0135f3faa6b0261ba7a3c30d (patch) | |
tree | f71a2860e2bb4355ba9ebc1a8c76c4caa243ae0a /chat | |
parent | c6c65f3efac4a3c967f30d623030ab462581d9d1 (diff) |
Ensure the current buddy is selected in the buddy list
Diffstat (limited to 'chat')
-rwxr-xr-x | chat/chat.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chat/chat.py b/chat/chat.py index 2abb2f1..40973f0 100755 --- a/chat/chat.py +++ b/chat/chat.py @@ -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) |