From 21ebfe023381746d52a03598c4de15e94d9cec79 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 1 Mar 2018 15:22:27 +0800 Subject: fixes GSettings usage --- src/ZYZConfig.cc | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/ZYZConfig.cc b/src/ZYZConfig.cc index 090eb92..508c61f 100644 --- a/src/ZYZConfig.cc +++ b/src/ZYZConfig.cc @@ -24,12 +24,11 @@ #include "ZYLibZhuyin.h" #include -#define USE_G_SETTINGS_LIST_CHILDREN 1 +#define USE_G_SETTINGS_LIST_CHILDREN 0 namespace ZY { const gchar * const CONFIG_FUZZY_ZHUYIN = "fuzzy-zhuyin"; -const gchar * const CONFIG_ORIENTATION = "lookup-table-orientation"; const gchar * const CONFIG_PAGE_SIZE = "candidate-num"; const gchar * const CONFIG_INIT_CHINESE = "chinese-mode"; @@ -179,12 +178,6 @@ ZhuyinConfig::readDefaultValues (void) g_strfreev (keys); #else /* others */ - m_orientation = read (CONFIG_ORIENTATION, IBUS_ORIENTATION_VERTICAL); - if (m_orientation != IBUS_ORIENTATION_VERTICAL && - m_orientation != IBUS_ORIENTATION_HORIZONTAL) { - m_orientation = IBUS_ORIENTATION_VERTICAL; - g_warn_if_reached (); - } m_page_size = read (CONFIG_PAGE_SIZE, 10); if (m_page_size > 10) { m_page_size = 10; @@ -291,14 +284,6 @@ ZhuyinConfig::valueChanged (const std::string &schema_id, } else if (CONFIG_CANDIDATE_KEYS == name) { m_candidate_keys = normalizeGVariant (value, std::string ("1234567890")); } /* lookup table page size */ - else if (CONFIG_ORIENTATION == name) { - m_orientation = normalizeGVariant (value, IBUS_ORIENTATION_VERTICAL); - if (m_orientation != IBUS_ORIENTATION_VERTICAL && - m_orientation != IBUS_ORIENTATION_HORIZONTAL) { - m_orientation = IBUS_ORIENTATION_VERTICAL; - g_warn_if_reached (); - } - } else if (CONFIG_PAGE_SIZE == name) { m_page_size = normalizeGVariant (value, 10); if (m_page_size > 10) { -- cgit