summaryrefslogtreecommitdiffstats
path: root/src/PYPConfig.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-12-28 14:39:53 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-28 14:39:53 +0800
commit998401f0c4c239fe6e804ab7b403b19c151fd13f (patch)
treea0a3210e0737e1a608340823f37f4c2154f487a2 /src/PYPConfig.cc
parente944e7d63af8152b20bffdd4ddeb3bd7fa786e31 (diff)
downloadibus-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.cc9
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";