Modify the style editor to properly handle unicode style names.

svn: r9918
This commit is contained in:
Brian Matherly
2008-01-23 13:14:05 +00:00
parent d7d3fbb244
commit 481b464ca5
3 changed files with 8 additions and 3 deletions

View File

@@ -153,7 +153,7 @@ class StyleListDisplay:
if not node:
return
name = self.list.model.get_value(node, 0)
name = unicode(self.list.model.get_value(node, 0))
style = self.sheetlist.get_style_sheet(name)
StyleEditor(name, style, self)
@@ -162,7 +162,7 @@ class StyleListDisplay:
store, node = self.list.selection.get_selected()
if not node:
return
name = self.list.model.get_value(node, 0)
name = unicode(self.list.model.get_value(node, 0))
self.sheetlist.delete_style_sheet(name)
self.redraw()