summaryrefslogtreecommitdiff
path: root/src/fe-text/statusbar-config.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-16 00:08:47 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-16 00:08:47 +0000
commita52d99ecf4acb49cece2217b0e53c366bdcf5590 (patch)
tree874295f6d3dab8f3e0f51fd688bb31b93165a243 /src/fe-text/statusbar-config.c
parent202d0b070e84566bc54a61692e0ae7545885d03b (diff)
downloadirssi-a52d99ecf4acb49cece2217b0e53c366bdcf5590.zip
/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
Diffstat (limited to 'src/fe-text/statusbar-config.c')
-rw-r--r--src/fe-text/statusbar-config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-text/statusbar-config.c b/src/fe-text/statusbar-config.c
index e3ae8898..3b0084de 100644
--- a/src/fe-text/statusbar-config.c
+++ b/src/fe-text/statusbar-config.c
@@ -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);