1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-27 20:30:13 -04:00

Tidy up titlebar title

This commit is contained in:
James Booth 2012-02-19 00:23:45 +00:00
parent 9f6356a8f7
commit 355f2a68fd
3 changed files with 9 additions and 4 deletions

View File

@ -5,13 +5,17 @@ static WINDOW *title_bar;
void create_title_bar(void)
{
char *title = "Profanity. Type /help for help information.";
int rows, cols;
getmaxyx(stdscr, rows, cols);
title_bar = newwin(1, cols, 0, 0);
wbkgd(title_bar, COLOR_PAIR(3));
title_bar_title();
}
void title_bar_title()
{
char *title = "Profanity. Type /help for help information.";
title_bar_show(title);
}

View File

@ -60,7 +60,7 @@ void win_switch_to(int i)
_curr_win = i;
if (i == 0) {
title_bar_show("Profanity. Type /help for help information.");
title_bar_title();
} else {
title_bar_show(_wins[i].from);
}
@ -77,7 +77,7 @@ void win_close_win(void)
// go back to console window
_curr_win = 0;
title_bar_show("Profanity. Type /help for help information.");
title_bar_title();
}
int win_in_chat(void)

View File

@ -21,6 +21,7 @@ void create_input_window(void);
// title bar actions
void title_bar_refresh(void);
void title_bar_show(char *title);
void title_bar_title(void);
void title_bar_connected(void);
void title_bar_disconnected(void);