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

@ -1,3 +1,8 @@
2008-01-23 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_StyleComboBox.py:
* src/ReportBase/_StyleEditor.py:
Modify the style editor to properly handle unicode style names.
2008-01-22 Brian Matherly <brian@gramps-project.org>
* src/plugins/KinshipReport.py:
* src/plugins/DetDescendantReport.py:

View File

@ -84,7 +84,7 @@ class StyleComboBox(gtk.ComboBox):
active = self.get_active()
if active < 0:
return None
key = self.store[active][0]
key = unicode(self.store[active][0])
if key == _('default'):
key = "default"
return (key,self.style_map[key])

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()