summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2022-01-11 14:34:10 +0800
committerPeng Wu <alexepico@gmail.com>2022-01-11 14:34:10 +0800
commitfd750ba2d288227bf7aef00d7126a4d1acb5ed7b (patch)
tree8666201c799bfbf9bc79a57b04bf1acd179160b1
parent09b8f11aea70284a65d35b2709e1867e0637e0ec (diff)
downloadibus-libpinyin-master.tar.gz
Change default value for comma-period-page optionmaster
-rw-r--r--data/com.github.libpinyin.ibus-libpinyin.gschema.xml2
-rw-r--r--src/PYConfig.cc2
-rw-r--r--src/PYPConfig.cc6
3 files changed, 5 insertions, 5 deletions
diff --git a/data/com.github.libpinyin.ibus-libpinyin.gschema.xml b/data/com.github.libpinyin.ibus-libpinyin.gschema.xml
index 524d748..437e2de 100644
--- a/data/com.github.libpinyin.ibus-libpinyin.gschema.xml
+++ b/data/com.github.libpinyin.ibus-libpinyin.gschema.xml
@@ -6,7 +6,7 @@
<summary>Auto commit</summary>
</key>
<key name="comma-period-page" type="b">
- <default>true</default>
+ <default>false</default>
<summary>Use comma and period to flip page</summary>
</key>
<key name="correct-pinyin" type="b">
diff --git a/src/PYConfig.cc b/src/PYConfig.cc
index f78129d..2f07f99 100644
--- a/src/PYConfig.cc
+++ b/src/PYConfig.cc
@@ -49,7 +49,7 @@ Config::initDefaultValues (void)
m_shift_select_candidate = FALSE;
m_minus_equal_page = TRUE;
- m_comma_period_page = TRUE;
+ m_comma_period_page = FALSE;
m_auto_commit = FALSE;
m_double_pinyin = FALSE;
diff --git a/src/PYPConfig.cc b/src/PYPConfig.cc
index 1717056..d543a79 100644
--- a/src/PYPConfig.cc
+++ b/src/PYPConfig.cc
@@ -131,7 +131,7 @@ LibPinyinConfig::initDefaultValues (void)
m_shift_select_candidate = FALSE;
m_minus_equal_page = TRUE;
- m_comma_period_page = TRUE;
+ m_comma_period_page = FALSE;
m_auto_commit = FALSE;
m_double_pinyin = FALSE;
@@ -548,7 +548,7 @@ PinyinConfig::readDefaultValues (void)
/* other */
m_shift_select_candidate = read (CONFIG_SHIFT_SELECT_CANDIDATE, false);
m_minus_equal_page = read (CONFIG_MINUS_EQUAL_PAGE, true);
- m_comma_period_page = read (CONFIG_COMMA_PERIOD_PAGE, true);
+ m_comma_period_page = read (CONFIG_COMMA_PERIOD_PAGE, false);
m_auto_commit = read (CONFIG_AUTO_COMMIT, false);
m_lua_extension = read (CONFIG_LUA_EXTENSION, true);
@@ -615,7 +615,7 @@ PinyinConfig::valueChanged (const std::string &schema_id,
else if (CONFIG_MINUS_EQUAL_PAGE == name)
m_minus_equal_page = normalizeGVariant (value, true);
else if (CONFIG_COMMA_PERIOD_PAGE == name)
- m_comma_period_page = normalizeGVariant (value, true);
+ m_comma_period_page = normalizeGVariant (value, false);
else if (CONFIG_LUA_CONVERTER == name)
m_lua_converter = normalizeGVariant (value, std::string (""));
else if (CONFIG_AUTO_COMMIT == name)