summary refs log tree commit diff stats
path: root/src/fe-gtk/plugin-tray.c
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2013-12-27 19:41:18 -0800
committerArnavion <arnavion@gmail.com>2013-12-27 19:41:18 -0800
commitc531db4714ae1b3c3345c731d64a282402f610d4 (patch)
tree4f01d3e31dc2d3be390623cb38c2c75e0e12fb30 /src/fe-gtk/plugin-tray.c
parentc7bf4b0474c613f81e3724043386373d7bc7d2a3 (diff)
fe-gtk: Fixed notification balloons for PMs not getting displayed if blinking tray icons for PMs is unchecked.
Diffstat (limited to 'src/fe-gtk/plugin-tray.c')
-rw-r--r--src/fe-gtk/plugin-tray.c32
1 files changed, 14 insertions, 18 deletions
diff --git a/src/fe-gtk/plugin-tray.c b/src/fe-gtk/plugin-tray.c
index f4fba64e..ec63ac89 100644
--- a/src/fe-gtk/plugin-tray.c
+++ b/src/fe-gtk/plugin-tray.c
@@ -758,19 +758,22 @@ tray_priv (char *from, char *text)
 	if (alert_match_word (from, prefs.hex_irc_no_hilight))
 		return;
 
-	tray_set_flash (ICON_MSG);
-
 	network = hexchat_get_info (ph, "network");
 	if (!network)
 		network = hexchat_get_info (ph, "server");
 
-	tray_priv_count++;
-	if (tray_priv_count == 1)
-		tray_set_tipf (_(DISPLAY_NAME": Private message from: %s (%s)"),
-							from, network);
-	else
-		tray_set_tipf (_(DISPLAY_NAME": %u private messages, latest from: %s (%s)"),
-							tray_priv_count, from, network);
+	if (prefs.hex_input_tray_priv)
+	{
+		tray_set_flash(ICON_MSG);
+
+		tray_priv_count++;
+		if (tray_priv_count == 1)
+			tray_set_tipf(_(DISPLAY_NAME": Private message from: %s (%s)"),
+			from, network);
+		else
+			tray_set_tipf(_(DISPLAY_NAME": %u private messages, latest from: %s (%s)"),
+			tray_priv_count, from, network);
+	}
 
 	if (prefs.hex_input_balloon_priv)
 		tray_set_balloonf (text, _("Private message from: %s (%s)"),
@@ -780,11 +783,7 @@ tray_priv (char *from, char *text)
 static int
 tray_priv_cb (char *word[], void *userdata)
 {
-	/*if (tray_status == TS_HIGHLIGHT)
-		return HEXCHAT_EAT_NONE;*/
-
-	if (prefs.hex_input_tray_priv)
-		tray_priv (word[1], word[2]);
+	tray_priv (word[1], word[2]);
 
 	return HEXCHAT_EAT_NONE;
 }
@@ -792,10 +791,7 @@ tray_priv_cb (char *word[], void *userdata)
 static int
 tray_invited_cb (char *word[], void *userdata)
 {
-	/*if (tray_status == TS_HIGHLIGHT)
-		return HEXCHAT_EAT_NONE;*/
-
-	if (prefs.hex_input_tray_priv && (!prefs.hex_away_omit_alerts || tray_find_away_status () != 1))
+	if (!prefs.hex_away_omit_alerts || tray_find_away_status () != 1)
 		tray_priv (word[2], "Invited");
 
 	return HEXCHAT_EAT_NONE;