diff options
author | James Booth <boothj5@gmail.com> | 2014-01-16 19:21:17 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-16 19:21:17 +0000 |
commit | 91b54057829611fef51a46f71e53ddfac8f1dd49 (patch) | |
tree | 89cc63fb225e510996ec424bd8422cc6f08c8e23 /src/ui | |
parent | 754ad86e3d83fa78680d07368eb5ec5ae3dea57f (diff) | |
download | profani-tty-91b54057829611fef51a46f71e53ddfac8f1dd49.tar.gz |
Renamed recipient -> current_recipient in titlebar
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/titlebar.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index 2ba38208..fd737d79 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -29,7 +29,7 @@ static WINDOW *win; static char *current_title = NULL; -static char *recipient = NULL; +static char *current_recipient = NULL; static GTimer *typing_elapsed; @@ -52,7 +52,7 @@ static void _title_bar_console(void) { werase(win); - recipient = NULL; + current_recipient = NULL; typing_elapsed = NULL; if (current_title != NULL) @@ -76,7 +76,7 @@ _title_bar_resize(void) static void _title_bar_refresh(void) { - if (recipient != NULL) { + if (current_recipient != NULL) { if (typing_elapsed != NULL) { gdouble seconds = g_timer_elapsed(typing_elapsed, NULL); @@ -87,8 +87,8 @@ _title_bar_refresh(void) free(current_title); } - current_title = (char *) malloc(strlen(recipient) + 1); - strcpy(current_title, recipient); + current_title = (char *) malloc(strlen(current_recipient) + 1); + strcpy(current_title, current_recipient); title_bar_draw(); @@ -117,8 +117,8 @@ _title_bar_set_recipient(const char * const from) g_timer_destroy(typing_elapsed); typing_elapsed = NULL; } - free(recipient); - recipient = strdup(from); + free(current_recipient); + current_recipient = strdup(from); if (current_title != NULL) { free(current_title); @@ -147,11 +147,11 @@ _title_bar_set_typing(gboolean is_typing) } if (is_typing) { - current_title = (char *) malloc(strlen(recipient) + 13); - sprintf(current_title, "%s (typing...)", recipient); + current_title = (char *) malloc(strlen(current_recipient) + 13); + sprintf(current_title, "%s (typing...)", current_recipient); } else { - current_title = (char *) malloc(strlen(recipient) + 1); - strcpy(current_title, recipient); + current_title = (char *) malloc(strlen(current_recipient) + 1); + strcpy(current_title, current_recipient); } wrefresh(win); |