summaryrefslogtreecommitdiffstats
path: root/src/PYConfig.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-10-07 13:05:20 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-22 12:23:13 +0800
commit1e7522cfd85fbf7ed2ef512ae8f093039f7a699d (patch)
tree639df1cb64ca56057f2631511c85f396f56ccd16 /src/PYConfig.cc
parente5870dfe0dc3a85182b8f92322ac25127de10af5 (diff)
downloadibus-libpinyin-1e7522cfd85fbf7ed2ef512ae8f093039f7a699d.tar.gz
ibus-libpinyin-1e7522cfd85fbf7ed2ef512ae8f093039f7a699d.tar.xz
ibus-libpinyin-1e7522cfd85fbf7ed2ef512ae8f093039f7a699d.zip
write PYConfig
Diffstat (limited to 'src/PYConfig.cc')
-rw-r--r--src/PYConfig.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/PYConfig.cc b/src/PYConfig.cc
index 1373607..9e539c8 100644
--- a/src/PYConfig.cc
+++ b/src/PYConfig.cc
@@ -23,6 +23,7 @@
#include "PYTypes.h"
#include "PYBus.h"
#include "PYDoublePinyinTable.h"
+#include "PYLibPinyin.h"
namespace PY {
@@ -336,6 +337,12 @@ Config::valueChangedCallback (IBusConfig *config,
Config *self)
{
self->valueChanged (section, name, value);
+ if (self->m_section != section)
+ return;
+ if (self->m_section == "engine/Pinyin")
+ LibPinyinBackEnd::instance ().setPinyinOptions (self);
+ if (self->m_section == "engine/Bopomofo")
+ LibPinyinBackEnd::instance ().setChewingOptions (self);
}
static const struct {