From 31f380dff7e84d7a0e25023a85c0d48ed934b7bf Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Tue, 21 Mar 2006 21:22:08 +0000 Subject: [PATCH] don't escape markup entities for banner tooltip --- src/chat_control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index c7fd39d77..30440465b 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -879,7 +879,7 @@ class ChatControl(ChatControlBase): if status is not None: banner_name_label.set_ellipsize(pango.ELLIPSIZE_END) status = gtkgui_helpers.reduce_chars_newlines(status, 0, 2) - status = gtkgui_helpers.escape_for_pango_markup(status) + status_escaped = gtkgui_helpers.escape_for_pango_markup(status) #FIXME: uncomment me when we support sending messages to specific resource # composing full jid @@ -911,9 +911,9 @@ class ChatControl(ChatControlBase): # weight="heavy" size="x-large" label_text = '%s%s' % \ (font_attrs, name, font_attrs_small, acct_info) - if status: + if status_escaped: label_text += '\n%s' %\ - (font_attrs_small, status) + (font_attrs_small, status_escaped) banner_eventbox = self.xml.get_widget('banner_eventbox') self.status_tooltip.set_tip(banner_eventbox, status) self.status_tooltip.enable()