]> git.saurik.com Git - cydia.git/commitdiff
Consistent application of right and left buttons.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 3 Mar 2011 21:10:05 +0000 (13:10 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Mar 2011 10:41:35 +0000 (02:41 -0800)
CyteKit/WebViewController.mm
MobileCydia.mm

index a75027837831f1faf3b97436322f32de7ecc2db8..c6033bcd4629244124fe3cc4ee34a76978c7a304 100644 (file)
@@ -806,6 +806,7 @@ float CYScrollViewDecelerationRateNormal;
         [webview_ insertSubview:table atIndex:0];
 
         [self applyLeftButton];
+        [self applyRightButton];
 
         [table setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
         [webview_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
index 9eb579119d8c7e6ace8817c670bf363f43ef4a25..296e7c346f5c076ebf8a92d44c92b00f70c431a1 100644 (file)
@@ -5049,13 +5049,17 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     [super dealloc];
 }
 
-- (void) updateCancel {
-    [[self navigationItem] setLeftBarButtonItem:(cancel_ == 1 ? [[[UIBarButtonItem alloc]
+- (UIBarButtonItem *) leftButton {
+    return cancel_ == 1 ? [[[UIBarButtonItem alloc]
         initWithTitle:UCLocalize("CANCEL")
         style:UIBarButtonItemStylePlain
         target:self
         action:@selector(cancel)
-    ] autorelease] : nil)];
+    ] autorelease] : nil;
+}
+
+- (void) updateCancel {
+    [super applyLeftButton];
 }
 
 - (id) initWithDatabase:(Database *)database delegate:(id)delegate {