Skip to content
Snippets Groups Projects
Commit d31ee5f1 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

do not use underline in contact's button in chat window and tabbed chat window

parent 33212045
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,6 @@ class user:
else: raise TypeError, _('bad arguments')
class tabbed_chat_Window:
#TODO: close tabs
"""Class for tabbed chat window"""
def __init__(self, user, plugin, account):
self.xml = gtk.glade.XML(GTKGUI_GLADE, 'tabbed_chat', APP)
......@@ -218,6 +217,7 @@ class tabbed_chat_Window:
self.on_msg_key_press_event)
self.xml.signal_connect('on_button_contact_clicked', \
self.on_button_contact_clicked)
self.xml.get_widget('button_contact').set_use_underline(False)
self.tagIn = buffer_conv.create_tag("incoming")
color = self.plugin.config['inmsgcolor']
self.tagIn.set_property("foreground", color)
......@@ -389,6 +389,7 @@ class tabbed_chat_Window:
self.on_msg_key_press_event)
self.xmls[user.jid].signal_connect('on_button_contact_clicked', \
self.on_button_contact_clicked)
self.xmls[user.jid].get_widget('button_contact').set_use_underline(False)
def on_msg_key_press_event(self, widget, event):
"""When a key is pressed :
......@@ -679,6 +680,7 @@ class message_Window:
self.xml.signal_connect('on_clear_clicked', self.on_clear)
self.xml.signal_connect('on_button_contact_clicked', \
self.on_button_contact_clicked)
self.xml.get_widget('button_contact').set_use_underline(False)
self.xml.signal_connect('on_focus', self.on_focus)
self.xml.signal_connect('on_history_clicked', self.on_history)
self.xml.signal_connect('on_msg_key_press_event', \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment