summaryrefslogtreecommitdiffstats
path: root/setup
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-04-09 13:44:54 +0800
committerPeng Wu <alexepico@gmail.com>2014-04-09 13:44:54 +0800
commit34d1dfeafc2fa2864be07fc268ec0a5707fa29db (patch)
treeff2d7d90de6bd8d8715848a541b4593fea31a78c /setup
parentf7359250df593f93476f408c88389149e23d776f (diff)
downloadibus-libzhuyin-34d1dfeafc2fa2864be07fc268ec0a5707fa29db.tar.gz
ibus-libzhuyin-34d1dfeafc2fa2864be07fc268ec0a5707fa29db.tar.xz
ibus-libzhuyin-34d1dfeafc2fa2864be07fc268ec0a5707fa29db.zip
update config names
Diffstat (limited to 'setup')
-rw-r--r--setup/main.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup/main.py b/setup/main.py
index dd76999..61ca19b 100644
--- a/setup/main.py
+++ b/setup/main.py
@@ -166,8 +166,10 @@ class PreferencesWindow:
def __fuzzy_zhuyin_toggled_cb(widget):
val = widget.get_active()
- map(lambda w: self.__builder.get_object(w[0]).set_sensitive(val),
- self.__fuzzy_zhuyin_widgets)
+ for name, defval in self.__fuzzy_zhuyin_widgets:
+ widget = self.__builder.get_object(name)
+ widget.set_sensitive(val)
+
self.__fuzzy_zhuyin.connect("toggled", __fuzzy_zhuyin_toggled_cb)
# init value