summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-01-30 10:36:27 +0800
committerPeng Wu <alexepico@gmail.com>2012-01-30 10:36:27 +0800
commit48aa7a0e16f876464e0162db13c2162f12052e33 (patch)
treeb0c0fb24f86638f3762f4559a7a4dafe84f96faf
parentddee3cc2d3154d7715261aa5d0b7593b8ab0cd73 (diff)
downloadibus-libpinyin-48aa7a0e16f876464e0162db13c2162f12052e33.tar.gz
fixes chewing options
-rw-r--r--src/PYLibPinyin.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc
index 6f318f5..c1b1f92 100644
--- a/src/PYLibPinyin.cc
+++ b/src/PYLibPinyin.cc
@@ -173,7 +173,8 @@ LibPinyinBackEnd::setChewingOptions (Config *config)
}
}
- pinyin_set_options(m_chewing_context, config->option());
+ pinyin_option_t options = config->option() | USE_TONE;
+ pinyin_set_options(m_chewing_context, options);
return TRUE;
}