From b8c8d703f38d7871a199f40790d92879ca5b04a7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 28 Jan 2005 22:23:46 +0000 Subject: [PATCH] set new tab as active --- plugins/gtkgui/gtkgui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index ccf563158..da41ffc23 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -358,9 +358,12 @@ class tabbed_chat_Window: self.plugin.systray.remove_jid(jid, self.account) def new_user(self, user): + self.nb_unread[user.jid] = 0 self.xmls[user.jid] = gtk.glade.XML(GTKGUI_GLADE, "vbox_tab", APP) vb = self.xmls[user.jid].get_widget("vbox_tab") - self.xml.get_widget("notebook").append_page(vb) + nb = self.xml.get_widget("notebook") + nb.set_current_page(nb.append_page(vb)) + self.users[user.jid] = user @@ -381,7 +384,6 @@ class tabbed_chat_Window: color = self.plugin.config['statusmsgcolor'] self.tagStatus.set_property("foreground", color) - self.nb_unread[user.jid] = 0 self.redraw_tab(user.jid) self.draw_widgets(user) self.xmls[user.jid].signal_connect('on_history_clicked', self.on_history)