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:
parent
bcf0628a0f
commit
44dab33552
@ -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)
|
||||||
{
|
{
|
||||||
typing_elapsed = NULL;
|
if (typing_elapsed != NULL) {
|
||||||
|
g_timer_destroy(typing_elapsed);
|
||||||
|
typing_elapsed = NULL;
|
||||||
|
}
|
||||||
recipient = from;
|
recipient = from;
|
||||||
|
|
||||||
if (current_title != NULL) {
|
if (current_title != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user