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:
parent
6519b1ba58
commit
f3e4224748
@ -462,11 +462,11 @@ static void sig_statusbar_activity_window_destroyed(WINDOW_REC *window)
|
|||||||
/* redraw -- more -- */
|
/* redraw -- more -- */
|
||||||
static void statusbar_more(SBAR_ITEM_REC *item, int ypos)
|
static void statusbar_more(SBAR_ITEM_REC *item, int ypos)
|
||||||
{
|
{
|
||||||
if (item->size != 10) return;
|
if (item->size != 10) return;
|
||||||
|
|
||||||
move(ypos, item->xpos);
|
move(ypos, item->xpos);
|
||||||
set_color((1 << 4)+15); addstr("-- more --");
|
set_color((1 << 4)+15); addstr("-- more --");
|
||||||
screen_refresh();
|
screen_refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sig_statusbar_more_check_remove(WINDOW_REC *window)
|
static void sig_statusbar_more_check_remove(WINDOW_REC *window)
|
||||||
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user