diff options
author | Peng Wu <alexepico@gmail.com> | 2014-04-09 13:44:54 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2014-04-09 13:44:54 +0800 |
commit | 34d1dfeafc2fa2864be07fc268ec0a5707fa29db (patch) | |
tree | ff2d7d90de6bd8d8715848a541b4593fea31a78c /setup | |
parent | f7359250df593f93476f408c88389149e23d776f (diff) | |
download | ibus-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.py | 6 |
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 |