variables must be accessible because when we change preferences these variables are changed
This commit is contained in:
parent
133c635c83
commit
ea6b541bb7
1 changed files with 6 additions and 6 deletions
|
@ -1083,21 +1083,21 @@ class message_Window:
|
||||||
self.xml.signal_connect('on_history_clicked', self.on_history)
|
self.xml.signal_connect('on_history_clicked', self.on_history)
|
||||||
self.xml.signal_connect('on_msg_key_press_event', \
|
self.xml.signal_connect('on_msg_key_press_event', \
|
||||||
self.on_msg_key_press_event)
|
self.on_msg_key_press_event)
|
||||||
tagIn = buffer.create_tag("incoming")
|
self.tagIn = buffer.create_tag("incoming")
|
||||||
color = self.plugin.config['inmsgcolor']
|
color = self.plugin.config['inmsgcolor']
|
||||||
if not color:
|
if not color:
|
||||||
color = 'red'
|
color = 'red'
|
||||||
tagIn.set_property("foreground", color)
|
self.tagIn.set_property("foreground", color)
|
||||||
tagOut = buffer.create_tag("outgoing")
|
self.tagOut = buffer.create_tag("outgoing")
|
||||||
color = self.plugin.config['outmsgcolor']
|
color = self.plugin.config['outmsgcolor']
|
||||||
if not color:
|
if not color:
|
||||||
color = 'blue'
|
color = 'blue'
|
||||||
tagOut.set_property("foreground", color)
|
self.tagOut.set_property("foreground", color)
|
||||||
tagStatus = buffer.create_tag("status")
|
self.tagStatus = buffer.create_tag("status")
|
||||||
color = self.plugin.config['statusmsgcolor']
|
color = self.plugin.config['statusmsgcolor']
|
||||||
if not color:
|
if not color:
|
||||||
color = 'green'
|
color = 'green'
|
||||||
tagStatus.set_property("foreground", color)
|
self.tagStatus.set_property("foreground", color)
|
||||||
#print queued messages
|
#print queued messages
|
||||||
if plugin.queues[account].has_key(user.jid):
|
if plugin.queues[account].has_key(user.jid):
|
||||||
self.read_queue(plugin.queues[account][user.jid])
|
self.read_queue(plugin.queues[account][user.jid])
|
||||||
|
|
Loading…
Add table
Reference in a new issue