Moved otr properties to WIN_CHAT type

This commit is contained in:
James Booth
2014-12-10 01:33:46 +00:00
parent 7b44ac97cc
commit 12d0d22ab3
4 changed files with 63 additions and 24 deletions

View File

@@ -66,7 +66,6 @@ typedef enum {
} win_type_t;
typedef struct prof_win_t {
win_type_t type;
WINDOW *win;
@@ -75,11 +74,8 @@ typedef struct prof_win_t {
char *chat_resource;
int y_pos;
int paged;
gboolean is_otr;
gboolean is_trusted;
int unread;
int history_shown;
union {
// WIN_CONSOLE
struct {
@@ -89,6 +85,8 @@ typedef struct prof_win_t {
// WIN_CHAT
struct {
gboolean is_otr;
gboolean is_trusted;
} chat;
// WIN_MUC
@@ -136,5 +134,7 @@ void win_show_subwin(ProfWin *window);
int win_roster_cols(void);
int win_occpuants_cols(void);
void win_printline_nowrap(WINDOW *win, char *msg);
gboolean win_is_otr(ProfWin *window);
gboolean win_is_trusted(ProfWin *window);
#endif