Escape markup so we don't make pango angry
This commit is contained in:
parent
a03f850ce8
commit
97881ae7c0
@ -3,6 +3,7 @@ pygtk.require('2.0')
|
|||||||
import gtk
|
import gtk
|
||||||
import pango
|
import pango
|
||||||
import dbus
|
import dbus
|
||||||
|
import cgi
|
||||||
|
|
||||||
import google
|
import google
|
||||||
|
|
||||||
@ -33,6 +34,7 @@ class ActivitiesView(gtk.TreeView):
|
|||||||
address = model.get_value(it, 1)
|
address = model.get_value(it, 1)
|
||||||
|
|
||||||
markup = '<big><b>' + title + '</b></big>' + '\n' + address
|
markup = '<big><b>' + title + '</b></big>' + '\n' + address
|
||||||
|
markup = cgi.escape(markup) # escape the markup
|
||||||
|
|
||||||
cell.set_property('markup', markup)
|
cell.set_property('markup', markup)
|
||||||
cell.set_property('ellipsize', pango.ELLIPSIZE_END)
|
cell.set_property('ellipsize', pango.ELLIPSIZE_END)
|
||||||
|
Loading…
Reference in New Issue
Block a user