summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-03-02 16:48:32 +0800
committerPeng Wu <alexepico@gmail.com>2018-03-02 16:48:32 +0800
commit3edf0a88e2780fd1c48d85dfb88f9d3357110055 (patch)
tree12ac240116c20a9374ca8bc9d6c8707719de1004
parent21ebfe023381746d52a03598c4de15e94d9cec79 (diff)
downloadibus-libzhuyin-3edf0a88e2780fd1c48d85dfb88f9d3357110055.zip
ibus-libzhuyin-3edf0a88e2780fd1c48d85dfb88f9d3357110055.tar.gz
ibus-libzhuyin-3edf0a88e2780fd1c48d85dfb88f9d3357110055.tar.xz
use g_settings_list_keys function
-rw-r--r--src/ZYZConfig.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ZYZConfig.cc b/src/ZYZConfig.cc
index 508c61f..f00751c 100644
--- a/src/ZYZConfig.cc
+++ b/src/ZYZConfig.cc
@@ -24,7 +24,7 @@
#include "ZYLibZhuyin.h"
#include <string.h>
-#define USE_G_SETTINGS_LIST_CHILDREN 0
+#define USE_G_SETTINGS_LIST_KEYS 0
namespace ZY {
@@ -154,10 +154,10 @@ static const struct {
void
ZhuyinConfig::readDefaultValues (void)
{
-#if USE_G_SETTINGS_LIST_CHILDREN
+#if USE_G_SETTINGS_LIST_KEYS
/* read all values together */
initDefaultValues ();
- gchar **keys = g_settings_list_children (m_settings);
+ gchar **keys = g_settings_list_keys (m_settings);
g_return_if_fail (keys != NULL);
for (gchar **iter = keys; *iter != NULL; ++iter) {