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:
parent
9f6356a8f7
commit
355f2a68fd
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user