little bugfix

This commit is contained in:
Yann Leboulanger 2005-03-16 18:02:10 +00:00
parent c8077781c9
commit b0060e71f6
1 changed files with 6 additions and 5 deletions

View File

@ -91,10 +91,12 @@ class Chat:
start = "* " start = "* "
chat = self.names[jid] chat = self.names[jid]
if len(self.xmls) > 1: # if more than one tabs in the same window if len(self.xmls) > 1: # if more than one tabs in the same window
if isinstance(self.window, Tabbed_chat_window): chat = 'Chat'
chat = 'Chat' #FIXME: doesn't work
elif isinstance(self.window, Groupchat_window): # if isinstance(self.window, Tabbed_chat_window):
chat = 'Groupchat' # chat = 'Chat'
# elif isinstance(self.window, Groupchat_window):
# chat = 'Groupchat'
if len(self.plugin.accounts.keys()) >= 2: # if we have 2 or more accounts if len(self.plugin.accounts.keys()) >= 2: # if we have 2 or more accounts
title = start + chat + ' (account: ' + self.account + ')' title = start + chat + ' (account: ' + self.account + ')'
else: else:
@ -287,7 +289,6 @@ class Chat:
if current < (self.notebook.get_n_pages()-1): if current < (self.notebook.get_n_pages()-1):
self.notebook.set_current_page(current+1) self.notebook.set_current_page(current+1)
elif event.state & gtk.gdk.SHIFT_MASK: elif event.state & gtk.gdk.SHIFT_MASK:
print 'yes'
conversation_textview = self.xmls[jid].\ conversation_textview = self.xmls[jid].\
get_widget('conversation_textview') get_widget('conversation_textview')
rect = conversation_textview.get_visible_rect() rect = conversation_textview.get_visible_rect()