diff options
author | Peng Wu <alexepico@gmail.com> | 2011-12-27 10:47:15 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-12-27 10:47:15 +0800 |
commit | 9d175347f6bbe6b1655c34fee71fb7aad3b24e31 (patch) | |
tree | 230aa7c2de593792f89d2e6b27949dee0c8de285 | |
parent | 163b21e23f0621e6cfaf424b914aa33bda891294 (diff) | |
download | ibus-libpinyin-9d175347f6bbe6b1655c34fee71fb7aad3b24e31.tar.gz |
fixes PYConfig
-rw-r--r-- | src/PYConfig.cc | 9 | ||||
-rw-r--r-- | src/PYPConfig.cc | 4 |
2 files changed, 1 insertions, 12 deletions
diff --git a/src/PYConfig.cc b/src/PYConfig.cc index 47a7a7e..6241647 100644 --- a/src/PYConfig.cc +++ b/src/PYConfig.cc @@ -23,9 +23,6 @@ #include "PYTypes.h" #include "PYBus.h" #include "PYDoublePinyinTable.h" -#ifdef IBUS_BUILD_LIBPINYIN -#include "PYLibPinyin.h" -#endif namespace PY { @@ -341,12 +338,6 @@ Config::valueChangedCallback (IBusConfig *config, self->valueChanged (section, name, value); if (self->m_section != section) return; -#ifdef IBUS_BUILD_LIBPINYIN - if (self->m_section == "engine/Pinyin") - LibPinyinBackEnd::instance ().setPinyinOptions (self); - if (self->m_section == "engine/Bopomofo") - LibPinyinBackEnd::instance ().setChewingOptions (self); -#endif } static const struct { diff --git a/src/PYPConfig.cc b/src/PYPConfig.cc index da3d770..43bedd6 100644 --- a/src/PYPConfig.cc +++ b/src/PYPConfig.cc @@ -20,11 +20,9 @@ */ #include "PYPConfig.h" -#include "PYBus.h" -#ifdef IBUS_BUILD_LIBPINYIN #include <pinyin.h> +#include "PYBus.h" #include "PYLibPinyin.h" -#endif namespace PY { |