mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 17:06:21 +00:00
Clean up gtimer on show typing
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user