]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/BrowserView.mm
Factor out -[ConfirmationController complete].
[cydia.git] / UICaboodle / BrowserView.mm
index d5496403674f386fc327e2ed969bada9ce108388..43f2905ac6494fa27ab9ad658cbc446f024f03f0 100644 (file)
@@ -646,6 +646,14 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
     [self _setViewportWidth];
 }
 
+- (void) _setViewportWidthOnMainThread:(NSNumber *)width {
+    [self setViewportWidth:[width floatValue]];
+}
+
+- (void) setViewportWidthOnMainThread:(float)width {
+    [self performSelectorOnMainThread:@selector(_setViewportWidthOnMainThread:) withObject:[NSNumber numberWithFloat:width] waitUntilDone:NO];
+}
+
 - (void) webViewUpdateViewSettings:(UIWebView *)view {
     [self _setViewportWidth];
 }