[gnome-terminal] app: Filter out obsolete "current" encoding
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] app: Filter out obsolete "current" encoding
- Date: Wed, 21 May 2014 09:02:41 +0000 (UTC)
commit c804e7ca3be2ea27ff0c6240d81552f10c12628c
Author: Christian Persch <chpe gnome org>
Date: Wed May 21 11:02:03 2014 +0200
app: Filter out obsolete "current" encoding
https://bugzilla.gnome.org/show_bug.cgi?id=730498
src/terminal-app.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-app.c b/src/terminal-app.c
index 64c7dd3..732c0f3 100644
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -235,7 +235,12 @@ terminal_app_encoding_list_notify_cb (GSettings *settings,
encoding->is_active = TRUE;
g_settings_get (settings, key, "^as", &encodings);
- for (i = 0; encodings[i] != NULL; ++i) {
+ for (i = 0; encodings[i] != NULL; ++i)
+ {
+ /* Pre-3.13, not supported anymore */
+ if (g_str_equal (encodings[i], "current"))
+ continue;
+
encoding = terminal_app_ensure_encoding (app, encodings[i]);
if (!terminal_encoding_is_valid (encoding))
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]