From dd0991c316df752844a1f26cc108c7cf0a0df5dc Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Wed, 5 May 2010 11:25:11 +0200 Subject: [PATCH] added badge on mentions --- Controller.m | 2 ++ ReleaseNotes.html | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Controller.m b/Controller.m index ef77721..3b32b4d 100644 --- a/Controller.m +++ b/Controller.m @@ -195,8 +195,10 @@ - (void)unreadMentions:(NSInteger)count { if (![mentionsViewWindow isVisible] && count > 0) { [timelineViewWindow setTitle:[NSString stringWithFormat:@"Twittia (@%i)", count]]; + [[[NSApplication sharedApplication] dockTile] setBadgeLabel:[NSString stringWithFormat:@"%i", count]]; } else { [timelineViewWindow setTitle:[NSString stringWithFormat:@"Twittia"]]; + [[[NSApplication sharedApplication] dockTile] setBadgeLabel:nil]; [mentionsView stringByEvaluatingJavaScriptFromString:@"twittia_instance.unread_mentions = 0;"]; } } diff --git a/ReleaseNotes.html b/ReleaseNotes.html index e231431..dc7d715 100644 --- a/ReleaseNotes.html +++ b/ReleaseNotes.html @@ -13,8 +13,9 @@

Twittia 2.2.0

-

Added icon

-

Now with OAuth

+

Added icon.

+

Now with OAuth.

+

Added badge to dock icon on new mentions.