1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Added is_active and is_new to status bar

This commit is contained in:
James Booth 2012-04-20 01:43:51 +01:00
parent 53130f0e78
commit 6648232ca7

View File

@ -28,7 +28,8 @@
static WINDOW *status_bar;
static char _active[29] = "[ ][ ][ ][ ][ ][ ][ ][ ][ ]";
static int is_active[9];
static int is_new[9];
static int dirty;
static char curr_time[80];
@ -36,9 +37,14 @@ static void _status_bar_update_time(void);
void create_status_bar(void)
{
int rows, cols;
int rows, cols, i;
getmaxyx(stdscr, rows, cols);
for (i = 0; i < 9; i++) {
is_active[i] = FALSE;
is_new[i] = FALSE;
}
status_bar = newwin(1, cols, rows-2, 0);
wbkgd(status_bar, COLOR_PAIR(3));
wattron(status_bar, COLOR_PAIR(4));