Fixes issue #815 Size of the status button sometimes too small (https://sip-communicator.dev.java.net/issues/show_bug.cgi?id=815).

cusax-fix
Yana Stamcheva 16 years ago
parent aebc5bb1c1
commit 8752ab8f95

@ -550,6 +550,7 @@ private void publishStatus(
/**
* Updates the status of the given <tt>protocolProvider</tt>.
*
* @param protocolProvider the <tt>ProtocolProviderService</tt>
* corresponding to the menu to update
*/
@ -671,7 +672,7 @@ private void setSystrayIcon(int status)
return;
int imgType = SystrayService.SC_IMG_OFFLINE_TYPE;
if(status < PresenceStatus.ONLINE_THRESHOLD)
{
imgType = SystrayService.SC_IMG_OFFLINE_TYPE;

@ -131,7 +131,8 @@ protected void saveStatusInformation(
}
}
if(!savedAccount) {
if(!savedAccount)
{
String accNodeName
= "acc" + Long.toString(System.currentTimeMillis());
@ -146,13 +147,13 @@ protected void saveStatusInformation(
accountPackage+".lastAccountStatus",
statusName);
}
this.setPreferredSize(new Dimension(28, 24));
}
/**
* Paints this component. If the state of this menu is connecting, paints
* the connecting icon.
*
* @param g the <tt>Graphics</tt> object used for painting
*/
public void paintComponent(Graphics g)
{

Loading…
Cancel
Save