1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-03 20:27:45 +02:00

Merge pull request #41 from Jman012/master

Let windows.c actually get the tox *m.
This commit is contained in:
JFreegman 2013-09-17 21:20:40 -07:00
commit a33a3e33a7

View File

@ -195,8 +195,9 @@ void set_active_window(int index)
active_window = windows + index; active_window = windows + index;
} }
ToxWindow *init_windows() ToxWindow *init_windows(Tox *mToAssign)
{ {
m = mToAssign;
int n_prompt = add_window(m, new_prompt()); int n_prompt = add_window(m, new_prompt());
if (n_prompt == -1 || add_window(m, new_friendlist()) == -1) { if (n_prompt == -1 || add_window(m, new_friendlist()) == -1) {