nothing new

This commit is contained in:
Nikos Kouremenos 2005-06-20 22:22:54 +00:00
parent 304d316066
commit a4263d3515
1 changed files with 5 additions and 4 deletions

View File

@ -53,15 +53,15 @@ class Chat:
self.account = account self.account = account
self.change_cursor = None self.change_cursor = None
self.xmls = {} self.xmls = {}
self.tagIn = {} # holds nick that talks to us self.tagIn = {} # holds tag for nick that talks to us
self.tagOut = {} # holds our nick self.tagOut = {} # holds tag for our nick
self.tagStatus = {} # holds status messages self.tagStatus = {} # holds status messages
self.nb_unread = {} self.nb_unread = {}
self.last_message_time = {} self.last_message_time = {}
self.last_time_printout = {} self.last_time_printout = {}
self.print_time_timeout_id = {} self.print_time_timeout_id = {}
self.names = {} # what is printed in the tab (eg. user.name) self.names = {} # what is printed in the tab (eg. user.name)
self.childs = {} self.childs = {} # holds the contents for every tab (VBox)
#The following vars are used to keep history of user's messages #The following vars are used to keep history of user's messages
self.sent_history = {} self.sent_history = {}
@ -313,7 +313,6 @@ class Chat:
conversation_scrolledwindow.get_vadjustment().connect('value-changed', conversation_scrolledwindow.get_vadjustment().connect('value-changed',
self.on_conversation_vadjustment_value_changed) self.on_conversation_vadjustment_value_changed)
child = self.childs[jid]
if len(self.xmls) > 1: if len(self.xmls) > 1:
self.notebook.set_show_tabs(True) self.notebook.set_show_tabs(True)
@ -333,6 +332,8 @@ class Chat:
xm.signal_connect('on_close_button_clicked', xm.signal_connect('on_close_button_clicked',
self.on_close_button_clicked, jid) self.on_close_button_clicked, jid)
child = self.childs[jid]
#FIXME: gtk+ bug or ours? (I vote the 1st :$): popup menu shows in child_vbox and not in tab_hbox!
self.notebook.append_page_menu(child, tab_hbox, gtklabel) self.notebook.append_page_menu(child, tab_hbox, gtklabel)
#init new sent history for this conversation #init new sent history for this conversation