s/new_user/new_tab/

This commit is contained in:
Nikos Kouremenos 2005-08-26 12:55:17 +00:00
parent 121911f8f6
commit 4c75c558e0
2 changed files with 4 additions and 4 deletions

View File

@ -1356,7 +1356,7 @@ _('If "%s" accepts this request you will know his status.') %jid)
self.plugin.windows[account]['chats']['tabbed'] = \ self.plugin.windows[account]['chats']['tabbed'] = \
tabbed_chat_window.TabbedChatWindow(contact, self.plugin, account) tabbed_chat_window.TabbedChatWindow(contact, self.plugin, account)
else: else:
self.plugin.windows[account]['chats']['tabbed'].new_user(contact) self.plugin.windows[account]['chats']['tabbed'].new_tab(contact)
self.plugin.windows[account]['chats'][contact.jid] = \ self.plugin.windows[account]['chats'][contact.jid] = \
self.plugin.windows[account]['chats']['tabbed'] self.plugin.windows[account]['chats']['tabbed']

View File

@ -53,10 +53,10 @@ class TabbedChatWindow(chat.Chat):
self.possible_inactive_timeout_id = {} self.possible_inactive_timeout_id = {}
self.TARGET_TYPE_URI_LIST = 80 self.TARGET_TYPE_URI_LIST = 80
self.dnd_list = [ ( 'text/uri-list', 0, self.TARGET_TYPE_URI_LIST ) ] self.dnd_list = [ ( 'text/uri-list', 0, self.TARGET_TYPE_URI_LIST ) ]
self.new_user(user) self.new_tab(user)
self.show_title() self.show_title()
# NOTE: if it not a window event, connect in new_user function # NOTE: if it not a window event, connect in new_tab function
signal_dict = { signal_dict = {
'on_tabbed_chat_window_destroy': self.on_tabbed_chat_window_destroy, 'on_tabbed_chat_window_destroy': self.on_tabbed_chat_window_destroy,
'on_tabbed_chat_window_delete_event': self.on_tabbed_chat_window_delete_event, 'on_tabbed_chat_window_delete_event': self.on_tabbed_chat_window_delete_event,
@ -350,7 +350,7 @@ timestamp, contact):
chat.Chat.remove_tab(self, jid, 'chats') chat.Chat.remove_tab(self, jid, 'chats')
del self.contacts[jid] del self.contacts[jid]
def new_user(self, contact): def new_tab(self, contact):
'''when new tab is created''' '''when new tab is created'''
self.names[contact.jid] = contact.name self.names[contact.jid] = contact.name
self.xmls[contact.jid] = gtk.glade.XML(GTKGUI_GLADE, 'chats_vbox', APP) self.xmls[contact.jid] = gtk.glade.XML(GTKGUI_GLADE, 'chats_vbox', APP)