Added MMTexturedWindow user default

Enable MMTexturedWindow to get textured window on Tiger (Leopard always
uses a textured window).
This commit is contained in:
Bjorn Winckler
2008-01-26 18:36:32 +01:00
parent c438b122f7
commit 81598be330
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -112,6 +112,7 @@ typedef struct
[NSNumber numberWithBool:NO], MMAtsuiRendererKey,
[NSNumber numberWithInt:MMUntitledWindowAlways],
MMUntitledWindowKey,
[NSNumber numberWithBool:NO], MMTexturedWindowKey,
nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:dict];
+2 -1
View File
@@ -128,7 +128,8 @@
// Use textured background on Leopard or later (skip the 'if' on Tiger for
// polished metal window).
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_4)
if ([[NSUserDefaults standardUserDefaults] boolForKey:MMTexturedWindowKey]
|| (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_4))
styleMask |= NSTexturedBackgroundWindowMask;
// NOTE: The content rect is only used the very first time MacVim is
+1
View File
@@ -218,6 +218,7 @@ extern NSString *MMNoFontSubstitutionKey;
extern NSString *MMLoginShellKey;
extern NSString *MMAtsuiRendererKey;
extern NSString *MMUntitledWindowKey;
extern NSString *MMTexturedWindowKey;
// Enum for MMUntitledWindowKey
enum {
+1
View File
@@ -99,6 +99,7 @@ NSString *MMNoFontSubstitutionKey = @"MMNoFontSubstitution";
NSString *MMLoginShellKey = @"MMLoginShell";
NSString *MMAtsuiRendererKey = @"MMAtsuiRenderer";
NSString *MMUntitledWindowKey = @"MMUntitledWindow";
NSString *MMTexturedWindowKey = @"MMTexturedWindow";