From b6a4262e13829d8941cfe05f449a7e3faa2e8774 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 31 Jan 2005 15:07:09 +0000 Subject: [PATCH] bugfix for tags in tabbed chat window --- plugins/gtkgui/gtkgui.py | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index afb5add7b..ae3227d4d 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -226,20 +226,6 @@ class tabbed_chat_Window: color = self.plugin.config['statusmsgcolor'] self.tagStatus.set_property("foreground", color) - self.tag_table = gtk.TextTagTable() - tag = gtk.TextTag("incoming") - color = self.plugin.config['inmsgcolor'] - tag.set_property("foreground", color) - self.tag_table.add(tag) - tag = gtk.TextTag("outgoing") - color = self.plugin.config['outmsgcolor'] - tag.set_property("foreground", color) - self.tag_table.add(tag) - tag = gtk.TextTag("status") - color = self.plugin.config['statusmsgcolor'] - tag.set_property("foreground", color) - self.tag_table.add(tag) - #print queued messages if plugin.queues[account].has_key(user.jid): self.read_queue(plugin.queues[account][user.jid]) @@ -379,15 +365,15 @@ class tabbed_chat_Window: buffer_msg = message.get_buffer() end_iter = buffer_conv.get_end_iter() buffer_conv.create_mark('end', end_iter, 0) - self.tagIn = buffer_conv.create_tag("incoming") + tagIn = buffer_conv.create_tag("incoming") color = self.plugin.config['inmsgcolor'] - self.tagIn.set_property("foreground", color) - self.tagOut = buffer_conv.create_tag("outgoing") + tagIn.set_property("foreground", color) + tagOut = buffer_conv.create_tag("outgoing") color = self.plugin.config['outmsgcolor'] - self.tagOut.set_property("foreground", color) - self.tagStatus = buffer_conv.create_tag("status") + tagOut.set_property("foreground", color) + tagStatus = buffer_conv.create_tag("status") color = self.plugin.config['statusmsgcolor'] - self.tagStatus.set_property("foreground", color) + tagStatus.set_property("foreground", color) self.redraw_tab(user.jid) self.draw_widgets(user)