From d91356883c1d4d5bc6ea7729a96a60a9b813451e Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 13 Oct 2011 03:18:47 +0000 Subject: [PATCH] Apparently, libstatusbar emulated the wrong thing... :(. --- Tweak.mm | 12 ++++++++++-- control | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Tweak.mm b/Tweak.mm index eb27f15..0b159f7 100644 --- 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 8204648..4875f4d 100644 --- a/control +++ b/control @@ -5,7 +5,7 @@ Priority: optional Section: Networking Maintainer: Jay Freeman (saurik) 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) -- 2.47.2