1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

/RELOAD didn't update the statusbar colors the first time. /SET theme never

changed the statusbar colors.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2465 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-16 00:08:47 +00:00 committed by cras
parent 202d0b070e
commit a52d99ecf4
2 changed files with 5 additions and 1 deletions

View File

@ -1173,6 +1173,8 @@ static void change_theme(const char *name, int verbose)
rec = theme_load(name);
if (rec != NULL) {
current_theme = rec;
signal_emit("theme changed", 1, rec);
if (verbose) {
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
TXT_THEME_CHANGED,

View File

@ -443,7 +443,8 @@ static void cmd_statusbar(const char *data)
void statusbar_config_init(void)
{
read_statusbar_config();
signal_add("setup reread", (SIGNAL_FUNC) read_statusbar_config);
signal_add_last("setup reread", (SIGNAL_FUNC) read_statusbar_config);
signal_add("theme changed", (SIGNAL_FUNC) read_statusbar_config);
command_bind("statusbar", NULL, (SIGNAL_FUNC) cmd_statusbar);
command_bind("statusbar enable", NULL, (SIGNAL_FUNC) cmd_statusbar_enable);
@ -461,6 +462,7 @@ void statusbar_config_init(void)
void statusbar_config_deinit(void)
{
signal_remove("setup reread", (SIGNAL_FUNC) read_statusbar_config);
signal_remove("theme changed", (SIGNAL_FUNC) read_statusbar_config);
command_unbind("statusbar", (SIGNAL_FUNC) cmd_statusbar);
command_unbind("statusbar enable", (SIGNAL_FUNC) cmd_statusbar_enable);