From ea6b541bb79a82c5492b7023b0a58dba518ea60c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Mon, 10 May 2004 14:50:30 +0000 Subject: [PATCH] variables must be accessible because when we change preferences these variables are changed --- plugins/gtkgui/gtkgui.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index e0d3182509..785f8909da 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -1083,21 +1083,21 @@ class message_Window: self.xml.signal_connect('on_history_clicked', self.on_history) self.xml.signal_connect('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'] if not color: color = 'red' - tagIn.set_property("foreground", color) - tagOut = buffer.create_tag("outgoing") + self.tagIn.set_property("foreground", color) + self.tagOut = buffer.create_tag("outgoing") color = self.plugin.config['outmsgcolor'] if not color: color = 'blue' - tagOut.set_property("foreground", color) - tagStatus = buffer.create_tag("status") + self.tagOut.set_property("foreground", color) + self.tagStatus = buffer.create_tag("status") color = self.plugin.config['statusmsgcolor'] if not color: color = 'green' - tagStatus.set_property("foreground", color) + self.tagStatus.set_property("foreground", color) #print queued messages if plugin.queues[account].has_key(user.jid): self.read_queue(plugin.queues[account][user.jid]) -- GitLab