summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-24 09:44:27 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:16 -0800
commit8366df5e3dc184d578798c9e5635b11ab3f2e440 (patch)
treed46d0b53375b0b8918d4b5f72cdd1d4c8e577ad6 /MobileCydia.mm
parentc08c89434cf43d4fae69f1d9ad7325ac6a4e768b (diff)
Make the navigation action blocker actually useful.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm11
1 files changed, 6 insertions, 5 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index c9114ef..c0c9705 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4101,6 +4101,8 @@ static NSString *Warning_;
return @"substitutePackageNames";
else if (selector == @selector(scrollToBottom:))
return @"scrollToBottom";
+ else if (selector == @selector(setAllowsNavigationAction:))
+ return @"setAllowsNavigationAction";
else if (selector == @selector(setButtonImage:withStyle:toFunction:))
return @"setButtonImage";
else if (selector == @selector(setButtonTitle:withStyle:toFunction:))
@@ -4288,6 +4290,10 @@ static NSString *Warning_;
[indirect_ setButtonTitle:button withStyle:style toFunction:function];
}
+- (void) setAllowsNavigationAction:(NSString *)value {
+ [indirect_ performSelectorOnMainThread:@selector(setAllowsNavigationActionByNumber:) withObject:value waitUntilDone:NO];
+}
+
- (void) setHidesBackButton:(NSString *)value {
[indirect_ performSelectorOnMainThread:@selector(setHidesBackButtonByNumber:) withObject:value waitUntilDone:NO];
}
@@ -5889,11 +5895,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
return [NSURL URLWithString:[NSString stringWithFormat:@"cydia://package/%@", (id) name_]];
}
-- (bool) _allowNavigationAction {
- // XXX: damn it... I really want this.
- return true;
-}
-
/* XXX: this is not safe at all... localization of /fail/ */
- (void) _clickButtonWithName:(NSString *)name {
if ([name isEqualToString:UCLocalize("CLEAR")])