Skip to content
Browse files

Change status icon on last message viewed

  • Loading branch information...
1 parent fc9499e commit 5e9e94a595a448fa3a0d5676d2f51f19b497ca41 @pabluk committed Feb 7, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 libgnotwify/Gnotwify.py
View
4 libgnotwify/Gnotwify.py
@@ -407,6 +407,10 @@ def on_item_activate(item, id):
message.viewed = True
status_link = message.url
self._save_messages()
+ if self.unseen_messages() > 0:
+ self.icon_activate(True)
+ else:
+ self.icon_activate(False)
open_browser(item=None, url=status_link)
def open_browser(item, url):

0 comments on commit 5e9e94a

Please sign in to comment.
Something went wrong with that request. Please try again.