summary refs log tree commit diff stats
path: root/src/common/hexchat.h
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2013-01-07 14:20:26 -0800
committerRichardHitt <rbh00@netcom.com>2013-01-07 14:20:26 -0800
commit0213f21a46001cedd8b1c2d5e362b359214636d8 (patch)
tree1fae2a6c228801b6824f25cef9dc2abab412577b /src/common/hexchat.h
parent0ecbeb71522b51d9e3cd943ec67f52305d917287 (diff)
parent2af44e02bfc211d281cc51a86d55032134e4da31 (diff)
Merge pull request #341 from TingPing/lastact
Add last activity keybinding from fedora
Diffstat (limited to 'src/common/hexchat.h')
-rw-r--r--src/common/hexchat.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/hexchat.h b/src/common/hexchat.h
index c80156bd..dfd2fd5a 100644
--- a/src/common/hexchat.h
+++ b/src/common/hexchat.h
@@ -350,6 +350,15 @@ struct hexchatprefs
 #define SET_ON 1
 #define SET_DEFAULT 2 /* use global setting */
 
+/* Priorities in the "interesting sessions" priority queue
+ * (see xchat.c:sess_list_by_lastact) */
+#define LACT_NONE		-1		/* no queues */
+#define LACT_QUERY_HI	0		/* query with hilight */
+#define LACT_QUERY		1		/* query with messages */
+#define LACT_CHAN_HI	2		/* channel with hilight */
+#define LACT_CHAN		3		/* channel with messages */
+#define LACT_CHAN_DATA	4		/* channel with other data */
+
 /* Moved from fe-gtk for use in outbound.c as well -- */
 typedef enum gtk_xtext_search_flags_e {
 	case_match = 1,
@@ -408,6 +417,9 @@ typedef struct session
 
 	int type;					/* SESS_* */
 
+	int lastact_idx;		/* the sess_list_by_lastact[] index of the list we're in.
+							 * For valid values, see defines of LACT_*. */
+
 	int new_data:1;			/* new data avail? (purple tab) */
 	int nick_said:1;		/* your nick mentioned? (blue tab) */
 	int msg_said:1;			/* new msg available? (red tab) */