1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 23:36:45 +02:00

improve window alert functionality

This commit is contained in:
Jfreegman
2013-11-28 19:45:28 -05:00
parent 2057e7bc4f
commit a98ec22fd6
8 changed files with 50 additions and 31 deletions

View File

@ -120,7 +120,7 @@ static void groupchat_onGroupMessage(ToxWindow *self, Tox *m, int groupnum, int
} else
wprintw(ctx->history, "%s\n", msg);
self->blink = true;
alert_window(self, WINDOW_ALERT_1, false);
}
/* Puts two copies of peerlist in chat instance */
@ -214,6 +214,8 @@ static void groupchat_onGroupNamelistChange(ToxWindow *self, Tox *m, int groupnu
wattroff(ctx->history, COLOR_PAIR(MAGENTA));
break;
}
alert_window(self, WINDOW_ALERT_2, false);
}
static void groupchat_onKey(ToxWindow *self, Tox *m, wint_t key)