diff options
author | Pablo Barciela <[email protected]> | 2019-01-08 10:29:40 +0100 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-01-10 01:15:37 +0100 |
commit | 3d9cfcf4ab3b3cafe22c4197a67753e46e4debb3 (patch) | |
tree | 6554c2511ce44cafb1edb71a7a9c267f3ba8e4b2 | |
parent | 8d7aad19808ef31b9181de100ddd159ca26340ca (diff) | |
download | mate-panel-3d9cfcf4ab3b3cafe22c4197a67753e46e4debb3.tar.bz2 mate-panel-3d9cfcf4ab3b3cafe22c4197a67753e46e4debb3.tar.xz |
panel-config-global: avoid deprecated 'g_settings_list_keys'
-rw-r--r-- | mate-panel/panel-config-global.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mate-panel/panel-config-global.c b/mate-panel/panel-config-global.c index e31c1563..1e1f34de 100644 --- a/mate-panel/panel-config-global.c +++ b/mate-panel/panel-config-global.c @@ -123,12 +123,15 @@ panel_global_config_notify (GSettings *settings, void panel_global_config_load (void) { + GSettingsSchema *schema; gchar **keys; gint i; panel_global_settings = g_settings_new ("org.mate.panel"); - keys = g_settings_list_keys (panel_global_settings); + g_object_get (panel_global_settings, "settings-schema", &schema, NULL); + keys = g_settings_schema_list_keys (schema); + g_settings_schema_unref (schema); for (i = 0; keys[i]; i++) { panel_global_config_set_entry (panel_global_settings, keys[i]); |