1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -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();
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) {