grab focus on message widget when we change tab in tabbed chat window

This commit is contained in:
Yann Leboulanger 2005-02-02 12:08:20 +00:00
parent 8b5d92376f
commit 958884b8e2
1 changed files with 2 additions and 0 deletions

View File

@ -347,6 +347,8 @@ class tabbed_chat_Window:
child = self.xmls[jid].get_widget("vbox_tab")
nb = self.xml.get_widget("notebook")
nb.set_current_page(nb.page_num(child))
message = self.xmls[jid].get_widget('message')
message.grab_focus()
def new_user(self, user):
self.nb_unread[user.jid] = 0