aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/systray/jdic
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2008-06-13 09:38:44 +0000
committerDamian Minkov <damencho@jitsi.org>2008-06-13 09:38:44 +0000
commit6939878a1229de29532ab62443cb216321d06920 (patch)
tree7e3b6b4d52c8b7b8314ba314bbccf1f84f5a927d /src/net/java/sip/communicator/impl/systray/jdic
parent5c55015fdca28ae7134dbd6adae5b990f2faa7a4 (diff)
downloadjitsi-6939878a1229de29532ab62443cb216321d06920.zip
jitsi-6939878a1229de29532ab62443cb216321d06920.tar.gz
jitsi-6939878a1229de29532ab62443cb216321d06920.tar.bz2
Fix missing systray icon on macos.
Diffstat (limited to 'src/net/java/sip/communicator/impl/systray/jdic')
-rw-r--r--src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java b/src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java
index 15d08e4..39ea1bb 100644
--- a/src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java
+++ b/src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java
@@ -162,9 +162,15 @@ public class SystrayServiceJdicImpl
envelopeIcon = Resources.getImage("messageIcon");
}
- // default to set offline , if any protocols become
- // online will set it to online
- currentIcon = logoIconOffline;
+ if (!osName.startsWith("Mac OS X"))
+ {
+ // default to set offline , if any protocols become
+ // online will set it to online
+ currentIcon = logoIconOffline;
+ }
+ else
+ currentIcon = logoIcon;
+
trayIcon = new TrayIcon(currentIcon,
Resources.getApplicationString("applicationName"),
menu);
@@ -455,13 +461,19 @@ public class SystrayServiceJdicImpl
}
else if (imageType == SystrayService.SC_IMG_AWAY_TYPE)
{
- this.trayIcon.setIcon(logoIconAway);
- this.currentIcon = logoIconAway;
+ if (!osName.startsWith("Mac OS X"))
+ {
+ this.trayIcon.setIcon(logoIconAway);
+ this.currentIcon = logoIconAway;
+ }
}
else if (imageType == SystrayService.SC_IMG_FFC_TYPE)
{
- this.trayIcon.setIcon(logoIconFFC);
+ if (!osName.startsWith("Mac OS X"))
+ {
+ this.trayIcon.setIcon(logoIconFFC);
this.currentIcon = logoIconFFC;
+ }
}
else if (imageType == SystrayService.ENVELOPE_IMG_TYPE)
{