escape subject in set_subject and do not TB

This commit is contained in:
Nikos Kouremenos 2005-07-23 13:09:36 +00:00
parent d9ff414ac5
commit 8b24eb4cb8
2 changed files with 2 additions and 0 deletions

View file

@ -341,6 +341,7 @@ class GroupchatWindow(chat.Chat):
def set_subject(self, room_jid, subject):
self.subjects[room_jid] = subject
name_label = self.name_labels[room_jid]
subject = gtkgui_helpers.escape_for_pango_markup(subject)
name_label.set_markup('<span weight="heavy" size="x-large">%s</span>\n%s' % (room_jid, subject))
event_box = name_label.get_parent()
if subject == '':

View file

@ -21,6 +21,7 @@
##
import xml.sax.saxutils
import gtk
def escape_for_pango_markup(string):
# escapes < > & \ "