diff options
author | James Booth <boothj5@gmail.com> | 2012-10-21 20:02:20 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-10-21 20:02:20 +0100 |
commit | 6bad38c2d50a033d8e8a19998cb062e01fe1aa72 (patch) | |
tree | 781461a7d79b6fce56f5ee7f0a012e814cf8771f /src/title_bar.c | |
parent | 382e961563eb9e4d31d3ad111a41569b7fa78fa6 (diff) | |
download | profani-tty-6bad38c2d50a033d8e8a19998cb062e01fe1aa72.tar.gz |
Removed trailing whitespace from src and tests
Diffstat (limited to 'src/title_bar.c')
-rw-r--r-- | src/title_bar.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/title_bar.c b/src/title_bar.c index 2e067d59..0bfed5ba 100644 --- a/src/title_bar.c +++ b/src/title_bar.c @@ -1,8 +1,8 @@ -/* +/* * title_bar.c * * Copyright (C) 2012 James Booth <boothj5@gmail.com> - * + * * This file is part of Profanity. * * Profanity is free software: you can redistribute it and/or modify @@ -79,7 +79,7 @@ title_bar_refresh(void) gdouble seconds = g_timer_elapsed(typing_elapsed, NULL); if (seconds >= 10) { - + if (current_title != NULL) { free(current_title); } @@ -88,7 +88,7 @@ title_bar_refresh(void) strcpy(current_title, recipient); title_bar_draw(); - + dirty = TRUE; } } @@ -124,7 +124,7 @@ title_bar_set_recipient(char *from) { typing_elapsed = NULL; recipient = from; - + if (current_title != NULL) { free(current_title); } @@ -157,7 +157,7 @@ title_bar_set_typing(gboolean is_typing) current_title = (char *) malloc((strlen(recipient) + 1) * sizeof(char)); strcpy(current_title, recipient); } - + dirty = TRUE; } @@ -190,11 +190,11 @@ _title_bar_draw_status(void) } else { mvwprintw(title_bar, 0, cols - 13, " ..offline "); } - + wattron(title_bar, COLOUR_BAR_DRAW); mvwaddch(title_bar, 0, cols - 2, ']'); wattroff(title_bar, COLOUR_BAR_DRAW); - + dirty = TRUE; } @@ -206,6 +206,6 @@ _title_bar_draw_title(void) for (i = 0; i < 45; i++) waddch(title_bar, ' '); mvwprintw(title_bar, 0, 0, " %s", current_title); - + dirty = TRUE; } |