added badge on mentions

This commit is contained in:
Jeena Paradies 2010-05-05 11:25:11 +02:00
parent a0def6a388
commit dd0991c316
2 changed files with 5 additions and 2 deletions

View file

@ -195,8 +195,10 @@
- (void)unreadMentions:(NSInteger)count { - (void)unreadMentions:(NSInteger)count {
if (![mentionsViewWindow isVisible] && count > 0) { if (![mentionsViewWindow isVisible] && count > 0) {
[timelineViewWindow setTitle:[NSString stringWithFormat:@"Twittia (@%i)", count]]; [timelineViewWindow setTitle:[NSString stringWithFormat:@"Twittia (@%i)", count]];
[[[NSApplication sharedApplication] dockTile] setBadgeLabel:[NSString stringWithFormat:@"%i", count]];
} else { } else {
[timelineViewWindow setTitle:[NSString stringWithFormat:@"Twittia"]]; [timelineViewWindow setTitle:[NSString stringWithFormat:@"Twittia"]];
[[[NSApplication sharedApplication] dockTile] setBadgeLabel:nil];
[mentionsView stringByEvaluatingJavaScriptFromString:@"twittia_instance.unread_mentions = 0;"]; [mentionsView stringByEvaluatingJavaScriptFromString:@"twittia_instance.unread_mentions = 0;"];
} }
} }

View file

@ -13,8 +13,9 @@
<body> <body>
<h1>Twittia 2.2.0</h1> <h1>Twittia 2.2.0</h1>
<p>Added icon</p> <p>Added icon.</p>
<p>Now with OAuth</p> <p>Now with OAuth.</p>
<p>Added badge to dock icon on new mentions.</p>
<hr /> <hr />