From fa8801798c637ef8d03324b13740c4d8984a0fab Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 16 Jan 2014 18:43:06 +0000 Subject: Removed _title_bar_show --- src/ui/titlebar.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'src/ui') diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index 6c40f45a..d72ec796 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -35,7 +35,6 @@ static GTimer *typing_elapsed; static contact_presence_t current_presence; -static void _title_bar_show(const char * const title); static void _title_bar_draw_title(void); static void _title_bar_draw_presence(void); @@ -58,7 +57,12 @@ _title_bar_console(void) werase(win); recipient = NULL; typing_elapsed = NULL; - _title_bar_show("Profanity. Type /help for help information."); + + if (current_title != NULL) + free(current_title); + current_title = strdup("Profanity. Type /help for help information."); + + _title_bar_draw_title(); _title_bar_draw_presence(); wrefresh(win); inp_put_back(); @@ -107,17 +111,6 @@ _title_bar_refresh(void) } } -static void -_title_bar_show(const char * const title) -{ - if (current_title != NULL) - free(current_title); - - current_title = (char *) malloc(strlen(title) + 1); - strcpy(current_title, title); - _title_bar_draw_title(); -} - static void _title_bar_set_presence(contact_presence_t presence) { -- cgit 1.4.1-2-gfad0