do not focus a newly created tab when we receive a new message from a contact

This commit is contained in:
Yann Leboulanger 2005-03-01 17:38:35 +00:00
parent 7a84b33157
commit e06db9ab36
1 changed files with 2 additions and 2 deletions

View File

@ -429,11 +429,10 @@ class tabbed_chat_Window:
vb.show_all()
nb = self.xml.get_widget("notebook")
nb.set_current_page(nb.append_page(vb))
nb.append_page(vb)
self.redraw_tab(user.jid)
self.draw_widgets(user)
tv.grab_focus()
#print queued messages
if self.plugin.queues[self.account].has_key(user.jid):
@ -2089,6 +2088,7 @@ class roster_Window:
self.plugin.windows[account]['chats'][jid].window.present()
elif self.contacts[account].has_key(jid):
self.new_chat(self.contacts[account][jid][0], account)
self.plugin.windows[account]['chats']['tabbed'].active_tab(jid)
def on_roster_treeview_row_expanded(self, widget, iter, path):
"""When a row is expanded :