From a946e92a954015de79d56526b025022cf96a59d9 Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Mon, 15 Aug 2005 19:51:49 +0000
Subject: [PATCH] trayicon menuitems now work ok. for images to change we need
 them in ico format. I had ideas on that.. :D

---
 src/gajim.py | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/src/gajim.py b/src/gajim.py
index 630ea80c60..cef6aac223 100755
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -1125,15 +1125,13 @@ class Interface:
 		self.systray_capabilities = False
 		
 		if os.name == 'nt':
-			if float(gajim.version) > 0.8: # atm it is not ready for 0.8
-				try:
-					import systraywin32
-				except:
-					pass
-				else:
-					self.systray_capabilities = True
-					#self.roster.window.realize()
-					self.systray = systraywin32.SystrayWin32(self)
+			try:
+				import systraywin32
+			except: # user doesn't have trayicon capabilities
+				pass
+			else:
+				self.systray_capabilities = True
+				self.systray = systraywin32.SystrayWin32(self)
 		else:
 			try:
 				import egg.trayicon # use gnomepythonextras trayicon
-- 
GitLab