Fix Gtk3 problem passing unicode to a TreeView

svn: r20437
This commit is contained in:
Nick Hall 2012-09-23 14:53:18 +00:00
parent 4c8c703dcf
commit 0ebe837bd7

View File

@ -361,4 +361,6 @@ class PlaceTreeModel(PlaceBaseModel, TreeBaseModel):
return '<i>%s</i>' % cgi.escape(node.name) return '<i>%s</i>' % cgi.escape(node.name)
else: else:
level = len(self.do_get_path(self.get_iter(node)).get_indices()) level = len(self.do_get_path(self.get_iter(node)).get_indices())
return '<i>%s</i>' % cgi.escape(COUNTRYLEVELS['default'][level]) heading = '<i>%s</i>' % cgi.escape(COUNTRYLEVELS['default'][level])
# This causes a problem with Gtk3 unless we cast to str.
return str(heading)