mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Use title_bar_draw where possible in title bar
This commit is contained in:
parent
7c7af7b25f
commit
4792ac8df6
@ -62,11 +62,7 @@ _title_bar_console(void)
|
|||||||
free(current_title);
|
free(current_title);
|
||||||
current_title = strdup("Profanity. Type /help for help information.");
|
current_title = strdup("Profanity. Type /help for help information.");
|
||||||
|
|
||||||
werase(win);
|
title_bar_draw();
|
||||||
_title_bar_draw_title();
|
|
||||||
_title_bar_draw_presence();
|
|
||||||
wrefresh(win);
|
|
||||||
inp_put_back();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -77,11 +73,7 @@ _title_bar_resize(void)
|
|||||||
wresize(win, 1, cols);
|
wresize(win, 1, cols);
|
||||||
wbkgd(win, COLOUR_TITLE_TEXT);
|
wbkgd(win, COLOUR_TITLE_TEXT);
|
||||||
|
|
||||||
werase(win);
|
title_bar_draw();
|
||||||
_title_bar_draw_title();
|
|
||||||
_title_bar_draw_presence();
|
|
||||||
wrefresh(win);
|
|
||||||
inp_put_back();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -118,11 +110,7 @@ _title_bar_set_presence(contact_presence_t presence)
|
|||||||
{
|
{
|
||||||
current_presence = presence;
|
current_presence = presence;
|
||||||
|
|
||||||
werase(win);
|
title_bar_draw();
|
||||||
_title_bar_draw_title();
|
|
||||||
_title_bar_draw_presence();
|
|
||||||
wrefresh(win);
|
|
||||||
inp_put_back();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user