diff options
-rw-r--r-- | src/ui/titlebar.c | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index 052c6a6b..2ba38208 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -35,9 +35,6 @@ static GTimer *typing_elapsed; static contact_presence_t current_presence; -static void _title_bar_draw_title(void); -static void _title_bar_draw_presence(void); - static void _create_title_bar(void) { @@ -165,15 +162,15 @@ static void _title_bar_draw(void) { werase(win); - _title_bar_draw_title(); - _title_bar_draw_presence(); - wrefresh(win); - inp_put_back(); -} -static void -_title_bar_draw_presence(void) -{ + // show title + wmove(win, 0, 0); + int i; + for (i = 0; i < 45; i++) + waddch(win, ' '); + mvwprintw(win, 0, 0, " %s", current_title); + + // show presence int cols = getmaxx(stdscr); wattron(win, COLOUR_TITLE_BRACKET); @@ -210,19 +207,6 @@ _title_bar_draw_presence(void) inp_put_back(); } -static void -_title_bar_draw_title(void) -{ - wmove(win, 0, 0); - int i; - for (i = 0; i < 45; i++) - waddch(win, ' '); - mvwprintw(win, 0, 0, " %s", current_title); - - wrefresh(win); - inp_put_back(); -} - void titlebar_init_module(void) { |