summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-06-06 22:07:56 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-06-06 22:07:56 +0000
commit1aa6cbc3f9826f006f77dd0865ca72b5ac8aedf7 (patch)
treec950c98c6f564aad16feef0db76ee02c48f8dab6 /src/fe-common
parent1a79bd055c35e391f73d6741667b0ea2244a43d9 (diff)
downloadirssi-1aa6cbc3f9826f006f77dd0865ca72b5ac8aedf7.zip
Remove kludge and add the 'setup changed' handler with higher priority
so that term_charset validation is performed before any use. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4858 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-recode.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fe-common/core/fe-recode.c b/src/fe-common/core/fe-recode.c
index 2d0a991c..be7c6b53 100644
--- a/src/fe-common/core/fe-recode.c
+++ b/src/fe-common/core/fe-recode.c
@@ -174,11 +174,6 @@ static void read_settings(void)
g_get_charset(&str);
term_charset = is_valid_charset(old_term_charset) ? g_strdup(old_term_charset) : g_strdup(str);
settings_set_str("term_charset", term_charset);
- /* FIXME: move the check of term_charset into fe-text/term.c
- it breaks the proper term_input_type
- setup and reemitting of the signal is kludgy */
- if (g_strcasecmp(term_charset, old_term_charset) != 0)
- signal_emit("setup changed", 0);
}
if (recode_out_default)
@@ -202,7 +197,7 @@ void fe_recode_init (void)
command_bind("recode", NULL, (SIGNAL_FUNC) fe_recode_cmd);
command_bind("recode add", NULL, (SIGNAL_FUNC) fe_recode_add_cmd);
command_bind("recode remove", NULL, (SIGNAL_FUNC) fe_recode_remove_cmd);
- signal_add("setup changed", (SIGNAL_FUNC) read_settings);
+ signal_add_first("setup changed", (SIGNAL_FUNC) read_settings);
read_settings();
}