2008-01-23 Brian Matherly <brian@gramps-project.org>
Benny Malengier <benny.malengier@gramps-project.org>: backport trunk * src/ReportBase/_StyleComboBox.py: * src/ReportBase/_StyleEditor.py: Modify the style editor to properly handle unicode style names. svn: r9919
This commit is contained in:
parent
65dcc697ac
commit
10ae727aa1
@ -1,3 +1,9 @@
|
||||
2008-01-23 Brian Matherly <brian@gramps-project.org>
|
||||
Benny Malengier <benny.malengier@gramps-project.org>: backport trunk
|
||||
* src/ReportBase/_StyleComboBox.py:
|
||||
* src/ReportBase/_StyleEditor.py:
|
||||
Modify the style editor to properly handle unicode style names.
|
||||
|
||||
2008-01-22 Benny Malengier <benny.malengier@gramps-project.org>
|
||||
* src/Editors/_EditPerson.py: callback for gallerytab no longer needed
|
||||
|
||||
|
@ -83,7 +83,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])
|
||||
|
@ -149,7 +149,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)
|
||||
|
||||
@ -158,7 +158,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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user