summary refs log tree commit diff stats
path: root/src/common/hexchat.h
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2012-12-25 00:33:57 -0500
committerTingPing <tingping@tingping.se>2012-12-25 00:33:57 -0500
commitb37fe23b99be98955dd28cba054ed421a37d0e72 (patch)
tree3e5f7b13596ecdbc69adbce56cfb7ae56bd9574d /src/common/hexchat.h
parent76680ae41b34f15df59817dea1d163548b9a2d58 (diff)
Add last activity keybinding from fedora
Diffstat (limited to 'src/common/hexchat.h')
-rw-r--r--src/common/hexchat.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common/hexchat.h b/src/common/hexchat.h
index d84e2761..010414fd 100644
--- a/src/common/hexchat.h
+++ b/src/common/hexchat.h
@@ -348,6 +348,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,
@@ -406,6 +415,10 @@ typedef struct session
 
 	int type;					/* SESS_* */
 
+	GList *lastact_elem;	/* our GList element in sess_list_by_lastact */
+	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) */