Fix #1957 : Columns don't add resulting in keyerror for non-latin languages

This commit is contained in:
Serge Matveenko 2011-12-01 19:20:35 +00:00 committed by Calum Lind
parent 1a8aa4b920
commit 0941377fac
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ class ListView:
def on_menuitem_toggled(self, widget): def on_menuitem_toggled(self, widget):
"""Callback for the generated column menuitems.""" """Callback for the generated column menuitems."""
# Get the column name from the widget # Get the column name from the widget
name = widget.get_child().get_text() name = unicode(widget.get_child().get_text())
# Set the column's visibility based on the widgets active state # Set the column's visibility based on the widgets active state
self.columns[name].column.set_visible(widget.get_active()) self.columns[name].column.set_visible(widget.get_active())