mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05: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:
parent
6519b1ba58
commit
f3e4224748
@ -490,8 +490,10 @@ static void sig_statusbar_more_check(WINDOW_REC *window)
|
||||
return;
|
||||
|
||||
if (!WINDOW_GUI(window)->bottom) {
|
||||
if (more_item == NULL)
|
||||
if (more_item == NULL) {
|
||||
more_item = statusbar_item_create(mainbar, 10, FALSE, statusbar_more);
|
||||
statusbar_redraw(mainbar);
|
||||
}
|
||||
} else if (more_item != NULL) {
|
||||
statusbar_item_remove(more_item);
|
||||
more_item = NULL;
|
||||
@ -769,6 +771,7 @@ void statusbar_items_init(void)
|
||||
more_item = NULL;
|
||||
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 changed", (SIGNAL_FUNC) sig_statusbar_more_check);
|
||||
signal_add("gui print text", (SIGNAL_FUNC) sig_statusbar_more_check);
|
||||
|
||||
/* lag */
|
||||
@ -826,6 +829,7 @@ void statusbar_items_deinit(void)
|
||||
/* more */
|
||||
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 changed", (SIGNAL_FUNC) sig_statusbar_more_check);
|
||||
signal_remove("gui print text", (SIGNAL_FUNC) sig_statusbar_more_check);
|
||||
|
||||
/* lag */
|
||||
|
Loading…
Reference in New Issue
Block a user