diff options
author | Grant Paul <chpwn@chpwn.com> | 2010-08-10 17:35:42 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 08:21:22 +0000 |
commit | 6cb593f279314f4c633b6155a6729141d6b8f253 (patch) | |
tree | 9f3ebcf501bfb741a150ad75f0d681f728674951 /Cydia.mm | |
parent | 38be2c4b5f4a0183977f113365f0fb4634a88066 (diff) |
Commit (chpwn): uitabbar-fixed-badging.patch
Diffstat (limited to 'Cydia.mm')
-rw-r--r-- | Cydia.mm | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -7768,17 +7768,17 @@ static _finline void _setHomePage(Cydia *self) { if (changes != 0) { NSString *badge([[NSNumber numberWithInt:changes] stringValue]); - [toolbar_ setBadgeValue:badge forButton:3]; + [[[toolbar_ items] objectAtIndex:2] setBadgeValue:badge]; if ([toolbar_ respondsToSelector:@selector(setBadgeAnimated:forButton:)]) - [toolbar_ setBadgeAnimated:([essential_ count] != 0) forButton:3]; + [[[toolbar_ items] objectAtIndex:2] setAnimatedBadge:YES]; if ([self respondsToSelector:@selector(setApplicationBadge:)]) [self setApplicationBadge:badge]; else [self setApplicationBadgeString:badge]; } else { - [toolbar_ setBadgeValue:nil forButton:3]; + [[[toolbar_ items] objectAtIndex:2] setBadgeValue:nil]; if ([toolbar_ respondsToSelector:@selector(setBadgeAnimated:forButton:)]) - [toolbar_ setBadgeAnimated:NO forButton:3]; + [[[toolbar_ items] objectAtIndex:2] setAnimatedBadge:NO]; if ([self respondsToSelector:@selector(removeApplicationBadge)]) [self removeApplicationBadge]; else // XXX: maybe use setApplicationBadgeString also? @@ -7786,7 +7786,7 @@ static _finline void _setHomePage(Cydia *self) { } Queuing_ = false; - [toolbar_ setBadgeValue:nil forButton:4]; + [[[toolbar_ items] objectAtIndex:3] setBadgeValue:nil]; [self _updateData]; @@ -8131,7 +8131,7 @@ static _finline void _setHomePage(Cydia *self) { [self _reloadData]; else { Queuing_ = true; - [toolbar_ setBadgeValue:UCLocalize("Q_D") forButton:4]; + [[[toolbar_ items] objectAtIndex:3] setBadgeValue:UCLocalize("Q_D")]; [book_ reloadData]; } |