aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMTheme.m
diff options
context:
space:
mode:
Diffstat (limited to 'AppKit/GTMTheme.m')
-rw-r--r--AppKit/GTMTheme.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/AppKit/GTMTheme.m b/AppKit/GTMTheme.m
index f606f4c..91c4891 100644
--- a/AppKit/GTMTheme.m
+++ b/AppKit/GTMTheme.m
@@ -46,7 +46,6 @@ NSString *kGTMThemeDidChangeNotification = @"kGTMThemeDidChangeNotification";
@end
@interface GTMTheme ()
-- (void)bindToUserDefaults;
- (void)sendChangeNotification;
@end
@@ -189,7 +188,7 @@ NSString *kGTMThemeDidChangeNotification = @"kGTMThemeDidChangeNotification";
// TODO(alcor): dim images when disabled
color = [NSColor colorWithPatternImage:backgroundImage_];
- if (state != GTMThemeStateActiveWindow) {
+ if ((state & GTMThemeStateActiveWindow) != GTMThemeStateActiveWindow) {
NSImage *image =
[self backgroundImageForStyle:style
state:GTMThemeStateActiveWindow];
@@ -218,7 +217,7 @@ NSString *kGTMThemeDidChangeNotification = @"kGTMThemeDidChangeNotification";
}
}
- if (value) [self cacheValue:value forSelector:_cmd style:style state:state];
+ [self cacheValue:value forSelector:_cmd style:style state:state];
return value;
}