about summary refs log tree commit diff stats
path: root/src/ui/window.h
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-12-21 23:14:01 +0000
committerJames Booth <boothj5@gmail.com>2014-12-21 23:14:01 +0000
commitd5dee1632dd6e68a616a748456a880ea05983b3e (patch)
tree3405b4a4f8a4439a0d84b8e145509a70de28b83e /src/ui/window.h
parenteef7f9cfd4f74b03b6e3ecfe5ef496fbb4e238a8 (diff)
downloadprofani-tty-d5dee1632dd6e68a616a748456a880ea05983b3e.tar.gz
Moved unread to window subtypes
Diffstat (limited to 'src/ui/window.h')
-rw-r--r--src/ui/window.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/window.h b/src/ui/window.h
index 5acade5e..ce74c973 100644
--- a/src/ui/window.h
+++ b/src/ui/window.h
@@ -99,7 +99,6 @@ typedef enum {
 typedef struct prof_win_t {
     win_type_t type;
     ProfLayout *layout;
-    int unread;
 } ProfWin;
 
 typedef struct prof_console_win_t {
@@ -109,6 +108,7 @@ typedef struct prof_console_win_t {
 typedef struct prof_chat_win_t {
     ProfWin window;
     char *barejid;
+    int unread;
     gboolean is_otr;
     gboolean is_trusted;
     char *resource;
@@ -119,6 +119,7 @@ typedef struct prof_chat_win_t {
 typedef struct prof_muc_win_t {
     ProfWin window;
     char *roomjid;
+    int unread;
     unsigned long memcheck;
 } ProfMucWin;
 
@@ -132,6 +133,7 @@ typedef struct prof_mucconf_win_t {
 typedef struct prof_private_win_t {
     ProfWin window;
     char *fulljid;
+    int unread;
     unsigned long memcheck;
 } ProfPrivateWin;
 
@@ -173,6 +175,7 @@ int win_roster_cols(void);
 int win_occpuants_cols(void);
 void win_printline_nowrap(WINDOW *win, char *msg);
 
+int win_unread(ProfWin *window);
 gboolean win_has_active_subwin(ProfWin *window);
 gboolean win_has_modified_form(ProfWin *window);
 gboolean win_chat_history_shown(ProfWin *window);