1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-15 07:06:45 +02:00

show percentage complete for file transfers

This commit is contained in:
Jfreegman
2014-03-27 23:05:50 -04:00
parent 94e936575e
commit b36a8fd8fa
6 changed files with 63 additions and 10 deletions

View File

@ -325,6 +325,20 @@ void line_info_print(ToxWindow *self)
}
}
void line_info_set(ToxWindow *self, uint32_t id, uint8_t *msg)
{
struct line_info *line = self->chatwin->hst->line_end;
while (line) {
if (line->id == id) {
snprintf(line->msg, sizeof(line->msg), "%s", msg);
return;
}
line = line->prev;
}
}
static void line_info_goto_root(struct history *hst)
{
hst->line_start = hst->line_root;