diff options
author | Pablo Barciela <[email protected]> | 2018-11-26 23:26:08 +0100 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-11-27 19:10:13 +0000 |
commit | 7b99ea52ed806d82d414d1a2a3392fb21b210103 (patch) | |
tree | e8fa3b1db9bbd225578ec262738b2b3886588a90 /mate-session | |
parent | 6b7875b9714d5872f80b6b4012f24fb8f548aca2 (diff) | |
download | mate-session-manager-7b99ea52ed806d82d414d1a2a3392fb21b210103.tar.bz2 mate-session-manager-7b99ea52ed806d82d414d1a2a3392fb21b210103.tar.xz |
gsm-manager: avoid deprecated 'g_settings_list_schemas'
Diffstat (limited to 'mate-session')
-rw-r--r-- | mate-session/gsm-manager.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c index 5cd7771..f41d3ef 100644 --- a/mate-session/gsm-manager.c +++ b/mate-session/gsm-manager.c @@ -2717,7 +2717,7 @@ on_presence_status_changed (GsmPresence *presence, static void gsm_manager_init (GsmManager *manager) { - const char * const *schemas; + gchar **schemas = NULL; gboolean schema_exists; guint i; GsmManagerPrivate *priv; @@ -2728,7 +2728,7 @@ gsm_manager_init (GsmManager *manager) priv->settings_lockdown = g_settings_new (LOCKDOWN_SCHEMA); /* check if mate-screensaver is installed */ - schemas = g_settings_list_schemas (); + g_settings_schema_source_list_schemas (g_settings_schema_source_get_default (), TRUE, &schemas, NULL); schema_exists = FALSE; for (i = 0; schemas[i] != NULL; i++) { if (g_str_equal (schemas[i], SCREENSAVER_SCHEMA)) { @@ -2736,6 +2736,9 @@ gsm_manager_init (GsmManager *manager) break; } } + + g_strfreev (schemas); + if (schema_exists == TRUE) priv->settings_screensaver = g_settings_new (SCREENSAVER_SCHEMA); else |