some typos

This commit is contained in:
Yann Leboulanger 2005-03-09 20:40:50 +00:00
parent f2731f4053
commit 4241cc6915
1 changed files with 6 additions and 10 deletions

View File

@ -464,7 +464,7 @@ class tabbed_chat_window:
tag.set_property('justification', gtk.JUSTIFY_CENTER) tag.set_property('justification', gtk.JUSTIFY_CENTER)
for way in ['status', 'incoming', 'outgoing']: for way in ['status', 'incoming', 'outgoing']:
for special in ['mail', 'italic', 'underline', 'bold', 'url']: for special in ['mail', 'italic', 'underline', 'bold', 'url']:
tag = conversation_buffer.create_tag(way+special) tag = conversation_buffer.create_tag(way + '_' + special)
if way == 'status': if way == 'status':
color = self.plugin.config['statusmsgcolor'] color = self.plugin.config['statusmsgcolor']
tag.set_property('foreground', color) tag.set_property('foreground', color)
@ -486,10 +486,6 @@ class tabbed_chat_window:
tag.set_property('underline', pango.UNDERLINE_SINGLE) tag.set_property('underline', pango.UNDERLINE_SINGLE)
elif special == 'bold': elif special == 'bold':
tag.set_property('weight', pango.WEIGHT_BOLD) tag.set_property('weight', pango.WEIGHT_BOLD)
tag = conversation_buffer.create_tag('incomingitalic')
tag = conversation_buffer.create_tag('incomingunderline')
tag = conversation_buffer.create_tag('incomingbold')
tag = conversation_buffer.create_tag('incomingurl')
link_tag = conversation_buffer.create_tag('hyperlink', foreground='blue') link_tag = conversation_buffer.create_tag('hyperlink', foreground='blue')
self.xmls[user.jid].signal_autoconnect(self) self.xmls[user.jid].signal_autoconnect(self)
conversation_scrolledwindow = self.xmls[user.jid].\ conversation_scrolledwindow = self.xmls[user.jid].\
@ -670,21 +666,21 @@ class tabbed_chat_window:
return return
elif word.startswith('mailto'): elif word.startswith('mailto'):
#it's a mail #it's a mail
tag += 'mail' tag += '_mail'
#TODO: search for sth@sth.sth #TODO: search for sth@sth.sth
#it's a mail too #it's a mail too
elif word.startswith('/') and word.endswith('/'): elif word.startswith('/') and word.endswith('/'):
#it's an italic text #it's an italic text
tag += 'italic' tag += '_italic'
elif word.startswith('_') and word.endswith('_'): elif word.startswith('_') and word.endswith('_'):
#it's an underlined text #it's an underlined text
tag += 'unerline' tag += '_underline'
elif word.startswith('*') and word.endswith('*'): elif word.startswith('*') and word.endswith('*'):
#it's a bold text #it's a bold text
tag += 'bold' tag += '_bold'
else: else:
#it's an url #it's an url
tag += 'url' tag += '_url'
conversation_buffer.insert_with_tags_by_name(end_iter, text, tag) conversation_buffer.insert_with_tags_by_name(end_iter, text, tag)