mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Removed _title_bar_show
This commit is contained in:
parent
c32caa62e0
commit
fa8801798c
@ -35,7 +35,6 @@ static GTimer *typing_elapsed;
|
|||||||
|
|
||||||
static contact_presence_t current_presence;
|
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_title(void);
|
||||||
static void _title_bar_draw_presence(void);
|
static void _title_bar_draw_presence(void);
|
||||||
|
|
||||||
@ -58,7 +57,12 @@ _title_bar_console(void)
|
|||||||
werase(win);
|
werase(win);
|
||||||
recipient = NULL;
|
recipient = NULL;
|
||||||
typing_elapsed = 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();
|
_title_bar_draw_presence();
|
||||||
wrefresh(win);
|
wrefresh(win);
|
||||||
inp_put_back();
|
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
|
static void
|
||||||
_title_bar_set_presence(contact_presence_t presence)
|
_title_bar_set_presence(contact_presence_t presence)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user