redraw the good tab label when swithing page

This commit is contained in:
Yann Leboulanger 2005-02-11 22:13:49 +00:00
parent 6d32bd20f9
commit cb3d49d732
1 changed files with 7 additions and 1 deletions

View File

@ -335,7 +335,13 @@ class tabbed_chat_Window:
self.plugin.windows['logs'][jid] = log_Window(self.plugin, jid)
def on_notebook_switch_page(self, nb, page, page_num):
jid = self.get_active_jid()
child = nb.get_nth_page(page_num)
jid = ''
for j in self.xmls:
c = self.xmls[j].get_widget("vbox_tab")
if c == child:
jid = j
break
if self.nb_unread[jid] > 0:
self.nb_unread[jid] = 0
self.redraw_tab(jid)