Skip to content
Permalink
Browse files

procman: avoid deprecated 'g_settings_list_keys'

  • Loading branch information...
sc0w committed Jan 10, 2019
1 parent 4438637 commit 12959ae75ac93c11e2b3eefdf8f3fb46a76a3822
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/procman.cpp
@@ -241,6 +241,7 @@ show_all_fs_changed_cb (GSettings *settings, const gchar *key, gpointer data)
static ProcData *
procman_data_new (GSettings *settings)
{
GSettingsSchema *schema;
ProcData *pd;
gchar *color;
gchar **keys;
@@ -292,7 +293,10 @@ procman_data_new (GSettings *settings)

pd->config.num_cpus = glibtop_get_sysinfo()->ncpu; // or server->ncpu + 1

keys = g_settings_list_keys (settings);
g_object_get (settings, "settings-schema", &schema, NULL);
keys = g_settings_schema_list_keys (schema);
g_settings_schema_unref (schema);

for (int i = 0; i < pd->config.num_cpus; i++) {
gchar *key;
key = g_strdup_printf ("cpu-color%d", i);

0 comments on commit 12959ae

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