From: Jay Freeman (saurik) Date: Tue, 22 Jan 2008 11:58:57 +0000 (+0000) Subject: Finishing touches. X-Git-Tag: v1.0.3366~500 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/e8a3d6d7b09affd22ea6c0f3d24dc1fd2ba33f51 Finishing touches. --- diff --git a/Cydia.mm b/Cydia.mm index e63f35e4..915540dd 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -1949,7 +1949,7 @@ void AddTextView(NSMutableDictionary *fields, NSMutableArray *packages, NSString } - (NSString *) leftTitle { - return @"Upgrade All"; + return [packages_ count] == 0 ? nil : @"Upgrade All"; } - (void) addPackage:(Package *)package { @@ -2042,8 +2042,7 @@ void AddTextView(NSMutableDictionary *fields, NSMutableArray *packages, NSString - (void) alertSheet:(UIAlertSheet *)sheet buttonClicked:(int)button; - (void) buttonBarItemTapped:(id)sender; -- (void) view:(UIView *)sender didSetFrame:(CGRect)frame; -- (void) view:(UIView *)view didDrawInRect:(CGRect)rect duration:(float)duration; +- (void) view:(UIView *)sender didSetFrame:(CGRect)frame oldFrame:(CGRect)old; - (void) applicationDidFinishLaunching:(id)unused; @end @@ -2192,14 +2191,10 @@ void AddTextView(NSMutableDictionary *fields, NSMutableArray *packages, NSString [transition_ transition:0 toView:view]; } -- (void) view:(UIView *)view didSetFrame:(CGRect)frame { +- (void) view:(UIView *)view didSetFrame:(CGRect)frame oldFrame:(CGRect)old { [scroller_ setContentSize:frame.size]; } -- (void) view:(UIView *)view didDrawInRect:(CGRect)rect duration:(float)duration { - [scroller_ setContentSize:[webview_ bounds].size]; -} - - (void) applicationDidFinishLaunching:(id)unused { _assert(pkgInitConfig(*_config)); _assert(pkgInitSystem(*_config, _system));