Skip to content
Permalink
Browse files

panel-config-global: avoid deprecated 'g_settings_list_keys'

  • Loading branch information...
sc0w committed Jan 8, 2019
1 parent 8d7aad1 commit 3d9cfcf4ab3b3cafe22c4197a67753e46e4debb3
Showing with 4 additions and 1 deletion.
  1. +4 −1 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]);

0 comments on commit 3d9cfcf

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