Skip to content
Permalink
Browse files

mate-bg: avoid deprecated 'g_settings_list_keys'

  • Loading branch information...
sc0w committed Jan 7, 2019
1 parent 0c8a787 commit e263ed779d728fbed1b419dddec73fbbf611c7e8
Showing with 7 additions and 3 deletions.
  1. +7 −3 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);

0 comments on commit e263ed7

Please sign in to comment.
You can’t perform that action at this time.