summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-03-01 15:22:27 +0800
committerPeng Wu <alexepico@gmail.com>2018-03-01 15:22:27 +0800
commit21ebfe023381746d52a03598c4de15e94d9cec79 (patch)
tree8616dfcac1db372ffdc6ce97e154c66ba71b0424
parent3c25d39c4d9ca273b62e28ce9ce59f163c4cc161 (diff)
downloadibus-libzhuyin-21ebfe023381746d52a03598c4de15e94d9cec79.tar.gz
ibus-libzhuyin-21ebfe023381746d52a03598c4de15e94d9cec79.tar.xz
ibus-libzhuyin-21ebfe023381746d52a03598c4de15e94d9cec79.zip
fixes GSettings usage
-rw-r--r--src/ZYZConfig.cc17
1 files changed, 1 insertions, 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 <string.h>
-#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) {