}
- (void) loadView {
- if (NSString *homepage = [configuration_ objectForKey:@"Homepage"])
- [self setView:[[[WebCydgetLockScreenView alloc] initWithURL:[NSURL URLWithString:homepage]] autorelease]];
-
if (NSString *background = [configuration_ objectForKey:@"Background"])
background_ = [[WebCydgetLockScreenView alloc] initWithURL:[NSURL URLWithString:background]];
+
+ if (NSString *homepage = [configuration_ objectForKey:@"Homepage"])
+ [self setView:[[[WebCydgetLockScreenView alloc] initWithURL:[NSURL URLWithString:homepage]] autorelease]];
+ else if (kCFCoreFoundationVersionNumber < 800 && background_ != nil) {
+ [self setView:[background_ autorelease]];
+ background_ = nil;
+ }
}
- (void) purgeView {