fix that already happened but HAS BEEN DELETED

This commit is contained in:
Vincent Hanquez 2003-10-30 14:50:02 +00:00
parent 16d6b489e8
commit 49ac2dd720

View file

@ -101,7 +101,7 @@ class message:
if contact: if contact:
self.convTxtBuffer.insert_with_tags_by_name(end_iter, '<moi> ', 'outgoing') self.convTxtBuffer.insert_with_tags_by_name(end_iter, '<moi> ', 'outgoing')
else: else:
self.convTxtBuffer.insert_with_tags_by_name(end_iter, '<' + self.user.name + '> ', 'incomming') self.convTxtBuffer.insert_with_tags_by_name(end_iter, '<' + self.user.name + '> ', 'incoming')
self.convTxtBuffer.insert(end_iter, txt+'\n') self.convTxtBuffer.insert(end_iter, txt+'\n')
self.conversation.scroll_to_mark(\ self.conversation.scroll_to_mark(\
self.convTxtBuffer.get_mark('end'), 0.1, 0, 0, 0) self.convTxtBuffer.get_mark('end'), 0.1, 0, 0, 0)
@ -140,13 +140,15 @@ class message:
self.window.show() self.window.show()
self.xml.signal_connect('gtk_widget_destroy', self.delete_event) self.xml.signal_connect('gtk_widget_destroy', self.delete_event)
self.xml.signal_connect('on_msg_key_press_event', self.on_msg_key_press_event) self.xml.signal_connect('on_msg_key_press_event', self.on_msg_key_press_event)
self.tag = self.convTxtBuffer.create_tag("incomming") self.tag = self.convTxtBuffer.create_tag("incoming")
color = self.cfgParser.GtkGui_inmsgcolor color = self.cfgParser.GtkGui_inmsgcolor
if not color : color = red if not color:
color = red
self.tag.set_property("foreground", color) self.tag.set_property("foreground", color)
self.tag = self.convTxtBuffer.create_tag("outgoing") self.tag = self.convTxtBuffer.create_tag("outgoing")
color = self.cfgParser.GtkGui_outmsgcolor color = self.cfgParser.GtkGui_outmsgcolor
if not color : color = blue if not color:
color = blue
self.tag.set_property("foreground", color) self.tag.set_property("foreground", color)
class roster: class roster: