1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 10:46:45 +02:00

prompt tab alealert when friend comes online

This commit is contained in:
Jfreegman
2014-02-13 06:24:58 -05:00
parent c3d2ff6bfb
commit 07089271cc
3 changed files with 5 additions and 3 deletions

View File

@ -370,6 +370,8 @@ static void prompt_onConnectionChange(ToxWindow *self, Tox *m, int friendnum , u
wattroff(self->window, A_BOLD);
wprintw(self->window, "has come online\n");
wattroff(self->window, COLOR_PAIR(GREEN));
alert_window(self, WINDOW_ALERT_2, false);
} else {
wattron(self->window, COLOR_PAIR(RED));
wattron(self->window, A_BOLD);
@ -398,7 +400,7 @@ static void prompt_onFriendRequest(ToxWindow *self, uint8_t *key, uint8_t *data,
}
wprintw(self->window, "Type \"/accept %d\" to accept it.\n", n);
alert_window(self, WINDOW_ALERT_2, true);
alert_window(self, WINDOW_ALERT_1, true);
}
void prompt_init_statusbar(ToxWindow *self, Tox *m)