remove tab should have the show status image show/hide code, cause switch page is not enough

This commit is contained in:
Nikos Kouremenos 2005-05-05 13:18:44 +00:00
parent e8965ae8b4
commit 1f5e991af0
1 changed files with 8 additions and 0 deletions

View File

@ -153,6 +153,14 @@ class Tabbed_chat_window(chat.Chat):
if len(self.xmls) > 0:
del self.users[jid]
jid = self.get_active_jid() # get the new active jid
nontabbed_status_image = self.xmls[jid].get_widget(
'nontabbed_status_image')
if len(self.xmls) > 1:
nontabbed_status_image.hide()
else:
nontabbed_status_image.show()
def new_user(self, user):
self.names[user.jid] = user.name
self.xmls[user.jid] = gtk.glade.XML(GTKGUI_GLADE, 'chats_vbox', APP)