From cef48f8b1eb89bc2b668a2974b1a2f7fbdc12ea3 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sun, 20 Mar 2005 21:04:13 +0000
Subject: [PATCH] do not change the systrayicon to new_message when we send a
 message in GC window

---
 plugins/gtkgui/chat.py          | 1 +
 plugins/gtkgui/gtkgui.py        | 3 ---
 plugins/gtkgui/roster_window.py | 3 ---
 3 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/plugins/gtkgui/chat.py b/plugins/gtkgui/chat.py
index 816780b435..1a7bfbd6b8 100644
--- a/plugins/gtkgui/chat.py
+++ b/plugins/gtkgui/chat.py
@@ -583,5 +583,6 @@ class Chat:
 		if ((jid != self.get_active_jid()) or (not self.window.is_active()) or \
 			(not end)) and kind == 'incoming':
 			self.nb_unread[jid] += 1
+			self.plugin.systray.add_jid(jid, self.account)
 			self.redraw_tab(jid)
 			self.show_title()
diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py
index da3586ccfb..e285c17079 100644
--- a/plugins/gtkgui/gtkgui.py
+++ b/plugins/gtkgui/gtkgui.py
@@ -534,9 +534,6 @@ class plugin:
 			#message from someone
 			self.windows[account]['gc'][jid].print_conversation(array[1], jid, \
 				jids[1], array[2])
-			if not self.windows[account]['gc'][jid].window.\
-				get_property('is-active'):
-				self.systray.add_jid(jid, account)
 
 	def handle_event_gc_subject(self, account, array):
 		#('GC_SUBJECT', account, (jid, subject))
diff --git a/plugins/gtkgui/roster_window.py b/plugins/gtkgui/roster_window.py
index 340be327e9..0f53edd3ab 100644
--- a/plugins/gtkgui/roster_window.py
+++ b/plugins/gtkgui/roster_window.py
@@ -889,9 +889,6 @@ class roster_window:
 					self.tree.set_cursor(path)
 			self.plugin.windows[account]['chats'][jid].print_conversation(msg, \
 				jid, tim = tim)
-			if not self.plugin.windows[account]['chats'][jid].window.\
-				get_property('is-active'):
-				self.plugin.systray.add_jid(jid, account)
 
 	def on_preferences_menuitem_activate(self, widget):
 		"""When preferences is selected :
-- 
GitLab