Fix selection to use unicode keys and set str in gtk for issue422

This commit is contained in:
Cédric Krier committed 2008-10-08 11:17:00 +02:00
1 parent e47f06ca44
commit cdfd5911ad
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ def selection(title, values, parent, alwaysask=False):
keys = values.keys()
keys.sort()
for val in keys:
model.append([val])
model.append([str(val)])
sel_tree.set_model(model)
sel_tree.connect('row-activated',
-2
View File
@@ -21,8 +21,6 @@ def execute(datas, parent):
for module in MODULES:
try:
for name, func in module.get_plugins(datas['model']):
# Use str as key to use in the ListStore of common.selection
name = name.encode('utf-8')
result[name] = func
except Exception, exception:
continue