]> git.saurik.com Git - cydia.git/commitdiff
Finishing touches.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 22 Jan 2008 11:58:57 +0000 (11:58 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 22 Jan 2008 11:58:57 +0000 (11:58 +0000)
Cydia.mm

index e63f35e4fa4e6d38ee0207bd9826cf6ec5cd1c8d..915540dd01da0c44498eac018e8836a70df0ff98 100644 (file)
--- 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));