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:
parent
4c48422462
commit
a946e92a95
16
src/gajim.py
16
src/gajim.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue