summaryrefslogtreecommitdiffstats
path: root/setup
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-08-04 14:23:53 +0800
committerPeng Wu <alexepico@gmail.com>2015-08-04 14:23:53 +0800
commit238a9fe61981fb6513090efa3b93ec78e564e42c (patch)
treed4bc273e3a2f04e9adb28c00347b37adee51f73b /setup
parentbbf32a722b8eb093353ee057909d30cb4d88a9f4 (diff)
downloadibus-libzhuyin-238a9fe61981fb6513090efa3b93ec78e564e42c.tar.gz
ibus-libzhuyin-238a9fe61981fb6513090efa3b93ec78e564e42c.tar.xz
ibus-libzhuyin-238a9fe61981fb6513090efa3b93ec78e564e42c.zip
update main.py
Diffstat (limited to 'setup')
-rw-r--r--setup/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup/main.py b/setup/main.py
index c218655..8a85de9 100644
--- a/setup/main.py
+++ b/setup/main.py
@@ -90,6 +90,7 @@ class PreferencesWindow:
self.__traditional_chinese = self.__builder.get_object("traditionalchinese")
self.__always_input_num = self.__builder.get_object("alwaysinputnum")
self.__space_show_candidates = self.__builder.get_object("spaceshowcandidates")
+ self.__candidates_after_cursor = self.__builder.get_object("candidatesaftercursor")
# read values
self.__chinese_mode.set_active(self.__get_value("chinesemode", True))
@@ -98,6 +99,7 @@ class PreferencesWindow:
self.__traditional_chinese.set_active(self.__get_value("traditionalchinese", True))
self.__always_input_num.set_active(self.__get_value("alwaysinputnum", False))
self.__space_show_candidates.set_active(self.__get_value("spaceshowcandidates", False))
+ self.__candidates_after_cursor.set_active(self.__get_value("candidatesaftercursor", True))
# connect signals
self.__chinese_mode.connect("toggled", self.__toggled_cb, "chinesemode")
@@ -106,6 +108,7 @@ class PreferencesWindow:
self.__traditional_chinese.connect("toggled", self.__toggled_cb, "traditionalchinese")
self.__always_input_num.connect("toggled", self.__toggled_cb, "alwaysinputnum")
self.__space_show_candidates.connect("toggled", self.__toggled_cb, "spaceshowcandidates")
+ self.__candidates_after_cursor.connect("toggled", self.__toggled_cb, "candidatesaftercursor")
def __init_keyboard(self):