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

close chatwindow if its associated contact is blocked/deleted

This commit is contained in:
Jfreegman
2014-07-31 21:59:53 -04:00
parent b243f7aa62
commit a223545853
3 changed files with 23 additions and 2 deletions

View File

@ -480,6 +480,17 @@ void refresh_inactive_windows(void)
}
}
/* returns a pointer to the ToxWindow in the ith index. Returns NULL if no ToxWindow exists */
ToxWindow *get_window_ptr(int i)
{
ToxWindow *toxwin = NULL;
if (windows[i].active)
toxwin = &windows[i];
return toxwin;
}
int get_num_active_windows(void)
{
return num_active_windows;