diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-28 18:08:31 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:30 -0800 |
commit | c31c825dcaf3e45d8854d53fde12ab177a3e87f5 (patch) | |
tree | c462f6831125cbce6acac306eb55f4e3b00cbd9f /MobileCydia.mm | |
parent | 948db68010420426891800511bbb8cf01f812449 (diff) |
Add cydia.setBadgeValue() for tab badges.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 5719549..8049d6c 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4200,6 +4200,8 @@ static NSMutableSet *Diversions_; return @"scrollToBottom"; else if (selector == @selector(setAllowsNavigationAction:)) return @"setAllowsNavigationAction"; + else if (selector == @selector(setBadgeValue:)) + return @"setBadgeValue"; else if (selector == @selector(setButtonImage:withStyle:toFunction:)) return @"setButtonImage"; else if (selector == @selector(setButtonTitle:withStyle:toFunction:)) @@ -4429,6 +4431,10 @@ static NSMutableSet *Diversions_; [indirect_ setButtonTitle:button withStyle:style toFunction:function]; } +- (void) setBadgeValue:(id)value { + [indirect_ performSelectorOnMainThread:@selector(setBadgeValue:) withObject:value waitUntilDone:NO]; +} + - (void) setAllowsNavigationAction:(NSString *)value { [indirect_ performSelectorOnMainThread:@selector(setAllowsNavigationActionByNumber:) withObject:value waitUntilDone:NO]; } |