summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-10-04 21:00:07 -0700
committerGrant Paul <chpwn@chpwn.com>2010-10-04 21:00:07 -0700
commit80319240a664ad2e7f394ee8f0410db19eb2b689 (patch)
tree9fb46fd970808c0d6644915c3a997afbd81fac19
parent14d60a3fc6bc951438fc477ffe86a0a60cf9de0c (diff)
Additional code folding (and fixed an unmatched code folding end-marker); also, a compile-time flag for rotation.
-rw-r--r--Cydia.mm10
1 files changed, 8 insertions, 2 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 8c5d8b8..b86bb30 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -386,6 +386,7 @@ static const CFStringCompareFlags LaxCompareFlags_ = kCFCompareCaseInsensitive |
#define ShowInternals (0 && !ForRelease)
#define IgnoreInstall (0 && !ForRelease)
#define RecycleWebViews 0
+#define RotationEnabled 1
#define RecyclePackageViews (1 && ForRelease)
#define AlwaysReload (1 && !ForRelease)
@@ -3871,7 +3872,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
@implementation CYViewController
@end
/* }}} */
-
+/* Cydia Browser Controller {{{ */
@interface CYBrowserController : BrowserController {
CydiaObject *cydia_;
}
@@ -3961,7 +3962,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
@end
+/* }}} */
+/* Confirmation {{{ */
@protocol ConfirmationControllerDelegate
- (void) cancelAndClear:(bool)clear;
- (void) confirmWithNavigationController:(UINavigationController *)navigation;
@@ -7652,8 +7655,11 @@ freeing the view controllers on tab change */
}
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
- // XXX: this should be a compile-time flag
+#ifdef RotationEnabled
return YES;
+#else
+ return NO;
+#endif
}
- (void) setTabBarController:(UITabBarController *)controller {