summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-11-30 01:04:37 +0100
committerraveit65 <[email protected]>2018-12-01 17:25:58 +0100
commit3ff3f275dff1028a5bd9bf9c91f6bee8c21e24c5 (patch)
tree32c89a002af903b773ed8096c355afbe3f501e95
parent22601705ec33c24b24ed6bb24acc0605b050017e (diff)
downloadmate-terminal-3ff3f275dff1028a5bd9bf9c91f6bee8c21e24c5.tar.bz2
mate-terminal-3ff3f275dff1028a5bd9bf9c91f6bee8c21e24c5.tar.xz
terminal-screen: avoid deprecated 'g_settings_list_schemas'
-rw-r--r--src/terminal-screen.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 64c3f44..648a87e 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -1394,7 +1394,7 @@ get_child_environment (TerminalScreen *screen,
GHashTableIter iter;
GPtrArray *retval;
guint i;
- const char * const *list_schemas;
+ gchar **list_schemas = NULL;
gboolean schema_exists;
window = gtk_widget_get_toplevel (term);
@@ -1434,7 +1434,8 @@ get_child_environment (TerminalScreen *screen,
g_hash_table_replace (env_table, g_strdup ("WINDOWID"), g_strdup_printf ("%ld", GDK_WINDOW_XID (gtk_widget_get_window (window))));
g_hash_table_replace (env_table, g_strdup ("DISPLAY"), g_strdup (gdk_display_get_name (display)));
- list_schemas = g_settings_list_schemas();
+ g_settings_schema_source_list_schemas (g_settings_schema_source_get_default (), TRUE, &list_schemas, NULL);
+
schema_exists = FALSE;
for (i = 0; list_schemas[i] != NULL; i++) {
if (g_strcmp0 (list_schemas[i], CONF_PROXY_SCHEMA) == 0)
@@ -1443,6 +1444,9 @@ get_child_environment (TerminalScreen *screen,
break;
}
}
+
+ g_strfreev (list_schemas);
+
if (schema_exists == TRUE) {
terminal_util_add_proxy_env (env_table);
}