summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-12-27 10:47:15 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-27 10:47:15 +0800
commit9d175347f6bbe6b1655c34fee71fb7aad3b24e31 (patch)
tree230aa7c2de593792f89d2e6b27949dee0c8de285
parent163b21e23f0621e6cfaf424b914aa33bda891294 (diff)
downloadibus-libpinyin-9d175347f6bbe6b1655c34fee71fb7aad3b24e31.tar.gz
fixes PYConfig
-rw-r--r--src/PYConfig.cc9
-rw-r--r--src/PYPConfig.cc4
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 {