From 9d175347f6bbe6b1655c34fee71fb7aad3b24e31 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 27 Dec 2011 10:47:15 +0800 Subject: [PATCH] fixes PYConfig --- src/PYConfig.cc | 9 --------- src/PYPConfig.cc | 4 +--- 2 files changed, 1 insertion(+), 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 +#include "PYBus.h" #include "PYLibPinyin.h" -#endif namespace PY { -- 2.7.4