diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-01-22 11:58:57 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2008-01-22 11:58:57 +0000 |
commit | e8a3d6d7b09affd22ea6c0f3d24dc1fd2ba33f51 (patch) | |
tree | 5a58f91639af6a8b48817d5a0687cc53ed510769 | |
parent | c25a610db9cf0e7911ea574c56a66fb7513a0c91 (diff) |
Finishing touches.
-rw-r--r-- | Cydia.mm | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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)); |