From cb3d49d732f86933f68d2cd04838afb95e9809d8 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 11 Feb 2005 22:13:49 +0000 Subject: [PATCH] redraw the good tab label when swithing page --- plugins/gtkgui/gtkgui.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index b3a76f20b..c91d648fb 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -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)