From 9cfe39247699367af05d2d2df21f27763b505002 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 11 Jan 2009 12:07:30 +0000 Subject: [PATCH] Fixed lock widget overlaps. --- Library.mm | 12 ++++++------ control | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Library.mm b/Library.mm index c65b182..2a4483a 100644 --- a/Library.mm +++ b/Library.mm @@ -53,6 +53,7 @@ #import #import #import +#import #import #import #import @@ -61,7 +62,6 @@ #import #import #import -#import #import #import #import @@ -95,6 +95,7 @@ Class $UIToolbar; Class $SBApplication; Class $SBApplicationIcon; +Class $SBAwayView; Class $SBBookmarkIcon; Class $SBButtonBar; Class $SBCalendarIconContentsView; @@ -104,7 +105,6 @@ Class $SBIconController; Class $SBIconLabel; Class $SBIconList; Class $SBIconModel; -Class $SBSlidingAlertDisplay; Class $SBStatusBarContentsView; Class $SBStatusBarController; Class $SBStatusBarOperatorNameView; @@ -688,14 +688,14 @@ MSHook(id, SBContentLayer$initWithSize$, SBContentLayer *self, SEL sel, CGSize s return self; } -MSHook(void, SBSlidingAlertDisplay$updateDesktopImage$, SBSlidingAlertDisplay *self, SEL sel, UIImage *image) { +MSHook(void, SBAwayView$updateDesktopImage$, SBAwayView *self, SEL sel, UIImage *image) { NSString *path = $getTheme$([NSArray arrayWithObject:@"LockBackground.html"]); UIView *&_backgroundView(MSHookIvar(self, "_backgroundView")); if (path != nil && _backgroundView != nil) path = nil; - _SBSlidingAlertDisplay$updateDesktopImage$(self, sel, image); + _SBAwayView$updateDesktopImage$(self, sel, image); if (path != nil) { CGRect bounds = [self bounds]; @@ -1286,6 +1286,7 @@ extern "C" void WBInitialize() { $SBApplication = objc_getClass("SBApplication"); $SBApplicationIcon = objc_getClass("SBApplicationIcon"); + $SBAwayView = objc_getClass("SBAwayView"); $SBBookmarkIcon = objc_getClass("SBBookmarkIcon"); $SBButtonBar = objc_getClass("SBButtonBar"); $SBCalendarIconContentsView = objc_getClass("SBCalendarIconContentsView"); @@ -1295,7 +1296,6 @@ extern "C" void WBInitialize() { $SBIconLabel = objc_getClass("SBIconLabel"); $SBIconList = objc_getClass("SBIconList"); $SBIconModel = objc_getClass("SBIconModel"); - $SBSlidingAlertDisplay = objc_getClass("SBSlidingAlertDisplay"); $SBStatusBarContentsView = objc_getClass("SBStatusBarContentsView"); $SBStatusBarController = objc_getClass("SBStatusBarController"); $SBStatusBarOperatorNameView = objc_getClass("SBStatusBarOperatorNameView"); @@ -1323,7 +1323,7 @@ extern "C" void WBInitialize() { WBRename(SBIconModel, cacheImageForIcon:, cacheImageForIcon$); WBRename(SBIconModel, getCachedImagedForIcon:, getCachedImagedForIcon$); - WBRename(SBSlidingAlertDisplay, updateDesktopImage:, updateDesktopImage$); + WBRename(SBAwayView, updateDesktopImage:, updateDesktopImage$); WBRename(SBStatusBarContentsView, didMoveToSuperview, didMoveToSuperview); WBRename(SBStatusBarContentsView, initWithStatusBar:mode:, initWithStatusBar$mode$); WBRename(SBStatusBarController, setStatusBarMode:orientation:duration:fenceID:animation:, setStatusBarMode$orientation$duration$fenceID$animation$); diff --git a/control b/control index 57a8e3d..47766a9 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: optional Section: System Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 0.9.2695-1 +Version: 0.9.2696-1 Description: more powerful, open-source SummerBoard Name: WinterBoard Depends: mobilesubstrate (>= 0.9.2660-1) -- 2.45.2