mirror of
https://github.com/irssi/irssi.git
synced 2025-05-03 08:51:19 -05:00
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
This commit is contained in:
parent
1a79bd055c
commit
1aa6cbc3f9
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user