aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2016-05-29 18:45:58 +0200
committerIngo Bauersachs <ingo@jitsi.org>2016-05-29 23:14:02 +0200
commit98dc2c732e2ae6891d35cd0c024cc6975931fb32 (patch)
treee15906b72f04fe5b7cd50356f70d9103877990ae /src
parent7126030f9835f3c932e28b2f391794af411f3c82 (diff)
downloadjitsi-98dc2c732e2ae6891d35cd0c024cc6975931fb32.zip
jitsi-98dc2c732e2ae6891d35cd0c024cc6975931fb32.tar.gz
jitsi-98dc2c732e2ae6891d35cd0c024cc6975931fb32.tar.bz2
Remove unused envelope icon
Diffstat (limited to 'src')
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/contactlist/TreeContactList.java4
-rw-r--r--src/net/java/sip/communicator/impl/osdependent/jdic/SystrayServiceJdicImpl.java29
-rw-r--r--src/net/java/sip/communicator/service/systray/SystrayService.java5
3 files changed, 2 insertions, 36 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/TreeContactList.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/TreeContactList.java
index a916b2b..119e000 100644
--- a/src/net/java/sip/communicator/impl/gui/main/contactlist/TreeContactList.java
+++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/TreeContactList.java
@@ -565,10 +565,6 @@ public class TreeContactList
if (isActive)
{
activeContacts.add(contactNode);
-// SystrayService stray = GuiActivator.getSystrayService();
-//
-// if (stray != null)
-// stray.setSystrayIcon(SystrayService.ENVELOPE_IMG_TYPE);
}
else
activeContacts.remove(contactNode);
diff --git a/src/net/java/sip/communicator/impl/osdependent/jdic/SystrayServiceJdicImpl.java b/src/net/java/sip/communicator/impl/osdependent/jdic/SystrayServiceJdicImpl.java
index f1a744d..48d0f8c 100644
--- a/src/net/java/sip/communicator/impl/osdependent/jdic/SystrayServiceJdicImpl.java
+++ b/src/net/java/sip/communicator/impl/osdependent/jdic/SystrayServiceJdicImpl.java
@@ -93,10 +93,6 @@ public class SystrayServiceJdicImpl
private ImageIcon logoIconWhite;
- private ImageIcon envelopeIcon;
-
- private ImageIcon envelopeIconWhite;
-
/**
* The dock Icons used only in Mac version
*/
@@ -206,8 +202,6 @@ public class SystrayServiceJdicImpl
"service.systray.TRAY_ICON_WINDOWS_FFC");
logoIconDND = Resources.getImage(
"service.systray.TRAY_ICON_WINDOWS_DND");
- envelopeIcon = Resources.getImage(
- "service.systray.MESSAGE_ICON_WINDOWS");
}
/*
* If we're running under Mac OS X, we use special black and white icons
@@ -218,10 +212,6 @@ public class SystrayServiceJdicImpl
logoIcon = Resources.getImage("service.systray.TRAY_ICON_MACOSX");
logoIconWhite = Resources.getImage(
"service.systray.TRAY_ICON_MACOSX_WHITE");
- envelopeIcon = Resources.getImage(
- "service.systray.MESSAGE_ICON_MACOSX");
- envelopeIconWhite = Resources.getImage(
- "service.systray.MESSAGE_ICON_MACOSX_WHITE");
}
else
{
@@ -233,7 +223,6 @@ public class SystrayServiceJdicImpl
"service.systray.TRAY_ICON_EXTENDED_AWAY");
logoIconFFC = Resources.getImage("service.systray.TRAY_ICON_FFC");
logoIconDND = Resources.getImage("service.systray.TRAY_ICON_DND");
- envelopeIcon = Resources.getImage("service.systray.MESSAGE_ICON");
}
/*
@@ -296,11 +285,7 @@ public class SystrayServiceJdicImpl
{
public void popupMenuWillBecomeVisible(PopupMenuEvent e)
{
- ImageIcon newIcon
- = (currentIcon == envelopeIcon)
- ? envelopeIconWhite
- : logoIconWhite;
-
+ ImageIcon newIcon = logoIconWhite;
trayIcon.setIcon(newIcon);
currentIcon = newIcon;
}
@@ -308,11 +293,7 @@ public class SystrayServiceJdicImpl
public void popupMenuWillBecomeInvisible(
PopupMenuEvent e)
{
- ImageIcon newIcon
- = (currentIcon == envelopeIconWhite)
- ? envelopeIcon
- : logoIcon;
-
+ ImageIcon newIcon = logoIcon;
getTrayIcon().setIcon(newIcon);
currentIcon = newIcon;
}
@@ -402,12 +383,6 @@ public class SystrayServiceJdicImpl
if (!isMac)
systrayIconToSet = logoIconDND;
break;
- case SystrayService.ENVELOPE_IMG_TYPE:
- systrayIconToSet
- = (isMac && TrayMenuFactory.isVisible(menu))
- ? envelopeIconWhite
- : envelopeIcon;
- break;
}
if (systrayIconToSet != null)
diff --git a/src/net/java/sip/communicator/service/systray/SystrayService.java b/src/net/java/sip/communicator/service/systray/SystrayService.java
index 751abc6..4cabe2d 100644
--- a/src/net/java/sip/communicator/service/systray/SystrayService.java
+++ b/src/net/java/sip/communicator/service/systray/SystrayService.java
@@ -78,11 +78,6 @@ public interface SystrayService
public static final int SC_IMG_EXTENDED_AWAY_TYPE = 6;
/**
- * Image type corresponding to the envelope icon
- */
- public static final int ENVELOPE_IMG_TYPE = 1;
-
- /**
* Shows the given <tt>PopupMessage</tt>
*
* @param popupMessage the message to show