summaryrefslogtreecommitdiff
path: root/libmate-desktop
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-01-07 03:08:38 +0100
committerZenWalker <[email protected]>2019-01-09 12:08:45 +0100
commite263ed779d728fbed1b419dddec73fbbf611c7e8 (patch)
treebb769f404a51f27ec8819faa5f15359ad8206572 /libmate-desktop
parent0c8a787e28c9e453b3df29fe9046ed335ebcf59c (diff)
downloadmate-desktop-e263ed779d728fbed1b419dddec73fbbf611c7e8.tar.bz2
mate-desktop-e263ed779d728fbed1b419dddec73fbbf611c7e8.tar.xz
mate-bg: avoid deprecated 'g_settings_list_keys'
Diffstat (limited to 'libmate-desktop')
-rw-r--r--libmate-desktop/mate-bg.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c
index bb80cb8..6465879 100644
--- a/libmate-desktop/mate-bg.c
+++ b/libmate-desktop/mate-bg.c
@@ -304,6 +304,7 @@ mate_bg_load_from_system_gsettings (MateBG *bg,
GSettings *settings,
gboolean reset_apply)
{
+ GSettingsSchema *schema;
gchar **keys;
gchar **k;
@@ -312,9 +313,12 @@ mate_bg_load_from_system_gsettings (MateBG *bg,
g_settings_delay (settings);
- keys = g_settings_list_keys (settings);
- for (k = keys; *k; k++) {
- g_settings_reset (settings, *k);
+ g_object_get (settings, "settings-schema", &schema, NULL);
+ keys = g_settings_schema_list_keys (schema);
+ g_settings_schema_unref (schema);
+
+ for (k = keys; *k; k++) {
+ g_settings_reset (settings, *k);
}
g_strfreev (keys);