1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-08 04:26:01 -04:00

--more-- in statusbar should now work right.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@270 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-02 00:19:11 +00:00 committed by cras
parent 6519b1ba58
commit f3e4224748

View File

@ -490,8 +490,10 @@ static void sig_statusbar_more_check(WINDOW_REC *window)
return; return;
if (!WINDOW_GUI(window)->bottom) { if (!WINDOW_GUI(window)->bottom) {
if (more_item == NULL) if (more_item == NULL) {
more_item = statusbar_item_create(mainbar, 10, FALSE, statusbar_more); more_item = statusbar_item_create(mainbar, 10, FALSE, statusbar_more);
statusbar_redraw(mainbar);
}
} else if (more_item != NULL) { } else if (more_item != NULL) {
statusbar_item_remove(more_item); statusbar_item_remove(more_item);
more_item = NULL; more_item = NULL;
@ -769,6 +771,7 @@ void statusbar_items_init(void)
more_item = NULL; more_item = NULL;
signal_add("gui page scrolled", (SIGNAL_FUNC) sig_statusbar_more_check_remove); signal_add("gui page scrolled", (SIGNAL_FUNC) sig_statusbar_more_check_remove);
signal_add("window item changed", (SIGNAL_FUNC) sig_statusbar_more_check); signal_add("window item changed", (SIGNAL_FUNC) sig_statusbar_more_check);
signal_add("window changed", (SIGNAL_FUNC) sig_statusbar_more_check);
signal_add("gui print text", (SIGNAL_FUNC) sig_statusbar_more_check); signal_add("gui print text", (SIGNAL_FUNC) sig_statusbar_more_check);
/* lag */ /* lag */
@ -826,6 +829,7 @@ void statusbar_items_deinit(void)
/* more */ /* more */
signal_remove("gui page scrolled", (SIGNAL_FUNC) sig_statusbar_more_check_remove); signal_remove("gui page scrolled", (SIGNAL_FUNC) sig_statusbar_more_check_remove);
signal_remove("window item changed", (SIGNAL_FUNC) sig_statusbar_more_check); signal_remove("window item changed", (SIGNAL_FUNC) sig_statusbar_more_check);
signal_remove("window changed", (SIGNAL_FUNC) sig_statusbar_more_check);
signal_remove("gui print text", (SIGNAL_FUNC) sig_statusbar_more_check); signal_remove("gui print text", (SIGNAL_FUNC) sig_statusbar_more_check);
/* lag */ /* lag */