diff options
author | James Booth <boothj5@gmail.com> | 2012-12-20 00:00:42 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-12-20 00:00:42 +0000 |
commit | 44dab335521fc28022f470ead62e2165e18f287b (patch) | |
tree | 2987af17a81f50713bfb90b56a22175415c8e048 /src | |
parent | bcf0628a0f67bf1316e9d21eb411c00e5a18f1e2 (diff) | |
download | profani-tty-44dab335521fc28022f470ead62e2165e18f287b.tar.gz |
Clean up gtimer on show typing
Diffstat (limited to 'src')
-rw-r--r-- | src/title_bar.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/title_bar.c b/src/title_bar.c index 73352081..af22d5cc 100644 --- a/src/title_bar.c +++ b/src/title_bar.c @@ -91,6 +91,9 @@ title_bar_refresh(void) title_bar_draw(); + g_timer_destroy(typing_elapsed); + typing_elapsed = NULL; + dirty = TRUE; } } @@ -124,7 +127,10 @@ title_bar_set_status(jabber_presence_t status) void title_bar_set_recipient(char *from) { - typing_elapsed = NULL; + if (typing_elapsed != NULL) { + g_timer_destroy(typing_elapsed); + typing_elapsed = NULL; + } recipient = from; if (current_title != NULL) { |