]> git.saurik.com Git - veency.git/commitdiff
Apparently, libstatusbar emulated the wrong thing... :(. v0.9.3378
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Oct 2011 03:18:47 +0000 (03:18 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Oct 2011 03:18:47 +0000 (03:18 +0000)
Tweak.mm
control

index eb27f1528eec0cfce82f1aaaaef5a7f94f18ea29..0b159f7471b145988a75e5e735c2c50796feb97a 100644 (file)
--- a/Tweak.mm
+++ b/Tweak.mm
@@ -178,7 +178,11 @@ static void VNCEnabled();
 
 + (void) removeStatusBarItem {
     AshikaseSetEnabled(false, false);
-    [[$SBStatusBarController sharedStatusBarController] removeStatusBarItem:@"Veency"];
+
+    if ($SBStatusBarController != nil)
+        [[$SBStatusBarController sharedStatusBarController] removeStatusBarItem:@"Veency"];
+    else
+        [[UIApplication sharedApplication] removeStatusBarImageNamed:@"Veency"];
 }
 
 + (void) registerClient {
@@ -193,7 +197,11 @@ static void VNCEnabled();
 
     ++clients_;
     AshikaseSetEnabled(true, false);
-    [[$SBStatusBarController sharedStatusBarController] addStatusBarItem:@"Veency"];
+
+    if ($SBStatusBarController != nil)
+        [[$SBStatusBarController sharedStatusBarController] addStatusBarItem:@"Veency"];
+    else
+        [[UIApplication sharedApplication] addStatusBarImageNamed:@"Veency"];
 }
 
 + (void) performSetup:(NSThread *)thread {
diff --git a/control b/control
index 8204648a49590f7b627c3a47e9c60db253ee5fd9..4875f4d9e36f10883257e479c3ab46d3e838f5a5 100644 (file)
--- a/control
+++ b/control
@@ -5,7 +5,7 @@ Priority: optional
 Section: Networking
 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
 Architecture: iphoneos-arm
-Version: 0.9.3376-1
+Version: 0.9.3378-1
 Description: a VNC /server/ for the iPhone
 Name: Veency
 Depends: mobilesubstrate (>= 0.9.2966-1), libvncserver, com.saurik.iphone.ske, preferenceloader, jp.ashikase.mousesupport | firmware (<< 3.0), libstatusbar | firmware (<< 4.0)