Escape markup so we don't make pango angry

This commit is contained in:
Dan Williams 2006-06-15 17:03:59 -04:00
parent a03f850ce8
commit 97881ae7c0

View File

@ -3,6 +3,7 @@ pygtk.require('2.0')
import gtk
import pango
import dbus
import cgi
import google
@ -33,6 +34,7 @@ class ActivitiesView(gtk.TreeView):
address = model.get_value(it, 1)
markup = '<big><b>' + title + '</b></big>' + '\n' + address
markup = cgi.escape(markup) # escape the markup
cell.set_property('markup', markup)
cell.set_property('ellipsize', pango.ELLIPSIZE_END)