Update gateway code.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@5449 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-09-20 05:03:18 +00:00
committed by derek
parent 4fc71e7aef
commit 9dae87af54
9 changed files with 47 additions and 15 deletions

View File

@ -339,7 +339,7 @@ public class UserManager {
* @param presence the presence.
* @return the icon.
*/
public Icon getIconFromPresence(Presence presence) {
public Icon getTabIconForPresence(Presence presence) {
StatusItem statusItem = SparkManager.getWorkspace().getStatusBar().getItemFromPresence(presence);
Icon tabIcon = null;
@ -356,11 +356,13 @@ public class UserManager {
}
}
Icon icon = SparkManager.getChatManager().getPresenceIconForContactHandler(presence);
Icon icon = SparkManager.getChatManager().getTabIconForContactHandler(presence);
if (icon != null) {
tabIcon = icon;
}
return tabIcon;
}
}