trayicon menuitems now work ok. for images to change we need them in ico format. I had ideas on that.. :D

This commit is contained in:
Nikos Kouremenos 2005-08-15 19:51:49 +00:00
parent 4c48422462
commit a946e92a95
1 changed files with 7 additions and 9 deletions

View File

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