summaryrefslogtreecommitdiffstats
path: root/src/PYConfig.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-08-06 10:23:09 +0800
committerPeng Wu <alexepico@gmail.com>2012-08-06 10:23:09 +0800
commitba61017002ab815aa398adb5d24b0626e22ff64e (patch)
tree76976af311b8dc93a389b396d78cc53da930393e /src/PYConfig.cc
parent3300a9085afbb30ea8ee00642b0e6c6c6fa8a164 (diff)
downloadibus-libpinyin-ba61017002ab815aa398adb5d24b0626e22ff64e.tar.gz
ibus-libpinyin-ba61017002ab815aa398adb5d24b0626e22ff64e.tar.xz
ibus-libpinyin-ba61017002ab815aa398adb5d24b0626e22ff64e.zip
fixes PYPConfig.cc
Diffstat (limited to 'src/PYConfig.cc')
-rw-r--r--src/PYConfig.cc21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/PYConfig.cc b/src/PYConfig.cc
index ca38678..c0ecb83 100644
--- a/src/PYConfig.cc
+++ b/src/PYConfig.cc
@@ -204,26 +204,7 @@ Config::valueChanged (const std::string &section,
const std::string &name,
GVariant *value)
{
- if (m_section != section)
- return FALSE;
-
- /* lookup table page size */
- if (CONFIG_ORIENTATION == name) {
- m_orientation = normalizeGVariant (value, IBUS_ORIENTATION_HORIZONTAL);
- if (m_orientation != IBUS_ORIENTATION_VERTICAL &&
- m_orientation != IBUS_ORIENTATION_HORIZONTAL) {
- m_orientation = IBUS_ORIENTATION_HORIZONTAL;
- g_warn_if_reached ();
- }
- }
- else if (CONFIG_PAGE_SIZE == name) {
- m_page_size = normalizeGVariant (value, 5);
- if (m_page_size > 10) {
- m_page_size = 5;
- g_warn_if_reached ();
- }
- }
- return TRUE;
+ return FALSE;
}
void