diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-08 20:12:38 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-08 20:12:38 +0000 |
commit | c54646cad9eb20eecbdad3c4df0c8b61972b9d08 (patch) | |
tree | acfdef7bc44564bd316bad6c2844a4bc41d13a12 | |
parent | 98b82723a126ca0c40982585c3754aa00bbed51f (diff) | |
download | irssi-c54646cad9eb20eecbdad3c4df0c8b61972b9d08.zip |
"mail counter" signal is now sent when mail counter is updated in statusbar.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1728 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | docs/signals.txt | 3 | ||||
-rw-r--r-- | src/fe-text/statusbar-items.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/docs/signals.txt b/docs/signals.txt index 9fa98ba3..5edbb9d4 100644 --- a/docs/signals.txt +++ b/docs/signals.txt @@ -291,3 +291,6 @@ Text FE gui-printtext.c: "beep" + +statusbar-items.c: + "mail counter" diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c index 7031a071..95fe95bb 100644 --- a/src/fe-text/statusbar-items.c +++ b/src/fe-text/statusbar-items.c @@ -475,6 +475,10 @@ static int get_mail_count(void) } fclose(f); + + if (mail_last_count != count) + signal_emit("mail counter", 0); + mail_last_count = count; return count; } |