From 80319240a664ad2e7f394ee8f0410db19eb2b689 Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Mon, 4 Oct 2010 21:00:07 -0700 Subject: [PATCH] Additional code folding (and fixed an unmatched code folding end-marker); also, a compile-time flag for rotation. --- Cydia.mm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Cydia.mm b/Cydia.mm index 8c5d8b8d..b86bb304 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 { -- 2.45.2