[sip-comm-dev] New message notification not disappearing


#1

Hi,
I noticed another mild annoyance - upon receiving message the unread
message notification icon (in systray and as contact's status icon in
contactlist) stays there even after reading the message (basically
until the window is closed). Can anyone confirm this?

Searching through sources I found that there is
FocusPropertyChangeListener class in ChatPanel class that does the
right thing, however it is not used anywhere.

Adding instance of this class in ChatPanel constructor as property
change listener gets rid of the problem and the new message indicator
is cleared properly and the behavior is what I would expect.

Index: src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java

···

===================================================================
--- src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java (revision
4993)
+++ src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java (working
copy)
@@ -127,7 +127,7 @@

         this.add(messagePane, BorderLayout.CENTER);
         this.add(sendPanel, BorderLayout.SOUTH);
-
+ this.addPropertyChangeListener(new
FocusPropertyChangeListener(KeyboardFocusManager.getCurrentKeyboardFocusManager()));
         this.addComponentListener(new TabSelectionComponentListener());
     }

--
Cheers, Martin Harvan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Marvin,

Yes, this is a known issue (#486 if you want to take a look --
https://sip-communicator.dev.java.net/issues/show_bug.cgi?id=486 ). If no
one else beats me to it, I'll test out your solution when I get a chance.
Thanks!

-Alan

···

-----Original Message-----

From: Martin Harvan [mailto:martinhrvn@gmail.com]

Sent: Saturday, February 14, 2009 4:13 PM
To: dev@sip-communicator.dev.java.net
Subject: [sip-comm-dev] New message notification not disappearing

Hi,
I noticed another mild annoyance - upon receiving message the unread message
notification icon (in systray and as contact's status icon in
contactlist) stays there even after reading the message (basically until the
window is closed). Can anyone confirm this?

Searching through sources I found that there is FocusPropertyChangeListener
class in ChatPanel class that does the right thing, however it is not used
anywhere.

Adding instance of this class in ChatPanel constructor as property change
listener gets rid of the problem and the new message indicator is cleared
properly and the behavior is what I would expect.

Index: src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java

--- src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
(revision
4993)
+++ src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
(working
copy)
@@ -127,7 +127,7 @@

         this.add(messagePane, BorderLayout.CENTER);
         this.add(sendPanel, BorderLayout.SOUTH);
-
+ this.addPropertyChangeListener(new
FocusPropertyChangeListener(KeyboardFocusManager.getCurrentKeyboardFocusMana
ger()));
         this.addComponentListener(new TabSelectionComponentListener());
     }

--
Cheers, Martin Harvan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net