diff options
author | James Booth <boothj5@gmail.com> | 2014-01-16 19:06:32 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-16 19:06:32 +0000 |
commit | 754ad86e3d83fa78680d07368eb5ec5ae3dea57f (patch) | |
tree | 36a587cd3698815a44682a3dd0610868ddaae2cb | |
parent | 4792ac8df67b95a8db09f982ecc898a36f06d773 (diff) | |
download | profani-tty-754ad86e3d83fa78680d07368eb5ec5ae3dea57f.tar.gz |
Inlined _title_bar_draw_title and _title_bar_draw_presence
-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) { |