summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-08-08 20:12:38 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-08-08 20:12:38 +0000
commitc54646cad9eb20eecbdad3c4df0c8b61972b9d08 (patch)
treeacfdef7bc44564bd316bad6c2844a4bc41d13a12 /src/fe-text
parent98b82723a126ca0c40982585c3754aa00bbed51f (diff)
downloadirssi-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
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/statusbar-items.c4
1 files changed, 4 insertions, 0 deletions
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;
}