1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Removed _title_bar_show

This commit is contained in:
James Booth 2014-01-16 18:43:06 +00:00
parent c32caa62e0
commit fa8801798c

View File

@ -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)
{