X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/6d9696a59dd8fe72d3c46e0703d2a019806b50ed..483881e4cf3df51df8c97d94857c611ef2510aa4:/CyteKit/ViewController.mm diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm index fa90b376..78f2b264 100644 --- a/CyteKit/ViewController.mm +++ b/CyteKit/ViewController.mm @@ -1,5 +1,5 @@ /* Cydia - iPhone UIKit Front-End for Debian APT - * Copyright (C) 2008-2012 Jay Freeman (saurik) + * Copyright (C) 2008-2014 Jay Freeman (saurik) */ /* GNU General Public License, Version 3 {{{ */ @@ -24,7 +24,7 @@ #include #include -extern bool IsWildcat_; +#include "iPhonePrivate.h" @implementation UIViewController (Cydia) @@ -106,8 +106,12 @@ extern bool IsWildcat_; return nil; } -- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { - return IsWildcat_ || orientation == UIInterfaceOrientationPortrait; +- (void) setPageColor:(UIColor *)color { + if (color == nil) + color = [UIColor groupTableViewBackgroundColor]; + color_ = color; } +#include "InterfaceOrientation.h" + @end