1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Clean up gtimer on show typing

This commit is contained in:
James Booth 2012-12-20 00:00:42 +00:00
parent bcf0628a0f
commit 44dab33552

View File

@ -91,6 +91,9 @@ title_bar_refresh(void)
title_bar_draw(); title_bar_draw();
g_timer_destroy(typing_elapsed);
typing_elapsed = NULL;
dirty = TRUE; dirty = TRUE;
} }
} }
@ -124,7 +127,10 @@ title_bar_set_status(jabber_presence_t status)
void void
title_bar_set_recipient(char *from) title_bar_set_recipient(char *from)
{ {
if (typing_elapsed != NULL) {
g_timer_destroy(typing_elapsed);
typing_elapsed = NULL; typing_elapsed = NULL;
}
recipient = from; recipient = from;
if (current_title != NULL) { if (current_title != NULL) {