Modify the style editor to properly handle unicode style names.
svn: r9918
This commit is contained in:
parent
d7d3fbb244
commit
481b464ca5
@ -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>
|
2008-01-22 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/plugins/KinshipReport.py:
|
* src/plugins/KinshipReport.py:
|
||||||
* src/plugins/DetDescendantReport.py:
|
* src/plugins/DetDescendantReport.py:
|
||||||
|
@ -84,7 +84,7 @@ class StyleComboBox(gtk.ComboBox):
|
|||||||
active = self.get_active()
|
active = self.get_active()
|
||||||
if active < 0:
|
if active < 0:
|
||||||
return None
|
return None
|
||||||
key = self.store[active][0]
|
key = unicode(self.store[active][0])
|
||||||
if key == _('default'):
|
if key == _('default'):
|
||||||
key = "default"
|
key = "default"
|
||||||
return (key,self.style_map[key])
|
return (key,self.style_map[key])
|
||||||
|
@ -153,7 +153,7 @@ class StyleListDisplay:
|
|||||||
if not node:
|
if not node:
|
||||||
return
|
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)
|
style = self.sheetlist.get_style_sheet(name)
|
||||||
StyleEditor(name, style, self)
|
StyleEditor(name, style, self)
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ class StyleListDisplay:
|
|||||||
store, node = self.list.selection.get_selected()
|
store, node = self.list.selection.get_selected()
|
||||||
if not node:
|
if not node:
|
||||||
return
|
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.sheetlist.delete_style_sheet(name)
|
||||||
self.redraw()
|
self.redraw()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user