escape subject in set_subject and do not TB
This commit is contained in:
parent
d9ff414ac5
commit
8b24eb4cb8
2 changed files with 2 additions and 0 deletions
|
@ -341,6 +341,7 @@ class GroupchatWindow(chat.Chat):
|
||||||
def set_subject(self, room_jid, subject):
|
def set_subject(self, room_jid, subject):
|
||||||
self.subjects[room_jid] = subject
|
self.subjects[room_jid] = subject
|
||||||
name_label = self.name_labels[room_jid]
|
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))
|
name_label.set_markup('<span weight="heavy" size="x-large">%s</span>\n%s' % (room_jid, subject))
|
||||||
event_box = name_label.get_parent()
|
event_box = name_label.get_parent()
|
||||||
if subject == '':
|
if subject == '':
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
##
|
##
|
||||||
|
|
||||||
import xml.sax.saxutils
|
import xml.sax.saxutils
|
||||||
|
import gtk
|
||||||
|
|
||||||
def escape_for_pango_markup(string):
|
def escape_for_pango_markup(string):
|
||||||
# escapes < > & \ "
|
# escapes < > & \ "
|
||||||
|
|
Loading…
Add table
Reference in a new issue