summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);