From bf6c04b2cafe0a132aa54c6134217a0f4369a054 Mon Sep 17 00:00:00 2001 From: Aaron Lipinski Date: Sun, 11 Aug 2013 14:49:41 +1200 Subject: add dhtstatus window --- testing/toxic/windows.c | 5 ++++- testing/toxic/windows.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/testing/toxic/windows.c b/testing/toxic/windows.c index aab46e99..6de50741 100644 --- a/testing/toxic/windows.c +++ b/testing/toxic/windows.c @@ -1,5 +1,6 @@ #include "friendlist.h" #include "prompt.h" +#include "dhtstatus.h" #include "windows.h" /* Holds status of chat windows */ @@ -164,8 +165,10 @@ ToxWindow *init_windows() w_num = 0; int n_prompt = 0; int n_friendslist = 1; + int n_dhtstatus = 2; if (add_window(m, new_prompt(on_friendadded), n_prompt) == -1 - || add_window(m, new_friendlist(WINDOW_STATUS), n_friendslist) == -1) { + || add_window(m, new_friendlist(WINDOW_STATUS), n_friendslist) == -1 + || add_window(m, new_dhtstatus(), n_dhtstatus) == -1) { fprintf(stderr, "add_window() failed.\n"); endwin(); exit(1); diff --git a/testing/toxic/windows.h b/testing/toxic/windows.h index 7d81e814..893ccf6f 100644 --- a/testing/toxic/windows.h +++ b/testing/toxic/windows.h @@ -14,7 +14,7 @@ #define KEY_SIZE_BYTES 32 /* number of permanent default windows */ -#define N_DEFAULT_WINS 2 +#define N_DEFAULT_WINS 3 /* maximum window slots for WINDOW_STATUS array */ #define MAX_WINDOW_SLOTS N_DEFAULT_WINS+MAX_FRIENDS_NUM -- cgit v1.2.3