1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 21:53:05 +01:00

properly close all groupchats on exit

This commit is contained in:
Jfreegman 2014-12-07 13:51:12 -05:00
parent a0418520a2
commit 82aa64e8f7
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
3 changed files with 4 additions and 4 deletions

View File

@ -158,7 +158,7 @@ int init_groupchat_win(ToxWindow *prompt, Tox *m, int groupnum, uint8_t type)
return -1;
}
void kill_groupchat_window(ToxWindow *self)
static void kill_groupchat_window(ToxWindow *self)
{
ChatContext *ctx = self->chatwin;
@ -173,7 +173,7 @@ void kill_groupchat_window(ToxWindow *self)
del_window(self);
}
static void close_groupchat(ToxWindow *self, Tox *m, int groupnum)
void close_groupchat(ToxWindow *self, Tox *m, int groupnum)
{
tox_del_groupchat(m, groupnum);
group_audio_close_out_device(groupnum);

View File

@ -77,7 +77,7 @@ typedef struct {
#endif
} GroupChat;
void kill_groupchat_window(ToxWindow *self);
void close_groupchat(ToxWindow *self, Tox *m, int groupnum);
int init_groupchat_win(ToxWindow *prompt, Tox *m, int groupnum, uint8_t type);
/* destroys and re-creates groupchat window with or without the peerlist */

View File

@ -561,7 +561,7 @@ void kill_all_windows(Tox *m)
if (windows[i].is_chat)
kill_chat_window(&windows[i], m);
else if (windows[i].is_groupchat)
kill_groupchat_window(&windows[i]);
close_groupchat(&windows[i], m, i);
}
kill_prompt_window(prompt);