From e8a3d6d7b09affd22ea6c0f3d24dc1fd2ba33f51 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 22 Jan 2008 11:58:57 +0000 Subject: Finishing touches. --- Cydia.mm | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Cydia.mm b/Cydia.mm index e63f35e..915540d 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)); -- cgit v1.2.3