summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-01-29 23:50:01 +0100
committerraveit65 <[email protected]>2020-01-31 19:05:37 +0100
commit6dbb4181a2e4b7392ff26408f0a75931b409b0fc (patch)
treed2b8ce2560580e35f9171fc456fcf35ce561b569 /src
parentf9563c4688f2d186307e9e1236ee721dc818c882 (diff)
downloadmate-terminal-6dbb4181a2e4b7392ff26408f0a75931b409b0fc.tar.bz2
mate-terminal-6dbb4181a2e4b7392ff26408f0a75931b409b0fc.tar.xz
terminal-encoding: use settings_global variable
Diffstat (limited to 'src')
-rw-r--r--src/terminal-encoding.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/terminal-encoding.c b/src/terminal-encoding.c
index d24972c..d0ebac2 100644
--- a/src/terminal-encoding.c
+++ b/src/terminal-encoding.c
@@ -290,7 +290,6 @@ update_active_encodings_gsettings (void)
GSList *list, *l;
GArray *strings;
const gchar *id_string;
- GSettings *settings;
list = terminal_app_get_active_encodings (terminal_app_get ());
strings = g_array_new (TRUE, TRUE, sizeof (gchar *));
@@ -302,9 +301,7 @@ update_active_encodings_gsettings (void)
strings = g_array_append_val (strings, id_string);
}
- settings = g_settings_new (CONF_GLOBAL_SCHEMA);
- g_settings_set_strv (settings, "active-encodings", (const gchar **) strings->data);
- g_object_unref (settings);
+ g_settings_set_strv (settings_global, "active-encodings", (const gchar **) strings->data);
g_array_free (strings, TRUE);
g_slist_foreach (list, (GFunc) terminal_encoding_unref, NULL);