diff options
author | Peng Wu <alexepico@gmail.com> | 2011-12-28 14:39:53 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-12-28 14:39:53 +0800 |
commit | 998401f0c4c239fe6e804ab7b403b19c151fd13f (patch) | |
tree | a0a3210e0737e1a608340823f37f4c2154f487a2 /src/PYPConfig.cc | |
parent | e944e7d63af8152b20bffdd4ddeb3bd7fa786e31 (diff) | |
download | ibus-libpinyin-998401f0c4c239fe6e804ab7b403b19c151fd13f.tar.gz ibus-libpinyin-998401f0c4c239fe6e804ab7b403b19c151fd13f.tar.xz ibus-libpinyin-998401f0c4c239fe6e804ab7b403b19c151fd13f.zip |
work around gsettings
Diffstat (limited to 'src/PYPConfig.cc')
-rw-r--r-- | src/PYPConfig.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/PYPConfig.cc b/src/PYPConfig.cc index 43bedd6..415e396 100644 --- a/src/PYPConfig.cc +++ b/src/PYPConfig.cc @@ -20,10 +20,19 @@ */ #include "PYPConfig.h" +#include <strings.h> #include <pinyin.h> #include "PYBus.h" #include "PYLibPinyin.h" +#ifdef HAVE_IBUS_CONFIG_GET_VALUES +/* work around gsettings. */ +bool operator == (const gchar *lhs, const std::string &rhs) +{ + return strcasecmp (lhs, rhs.c_str ()) == 0; +} +#endif + namespace PY { const gchar * const CONFIG_CORRECT_PINYIN = "CorrectPinyin"; |