summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorSimon Howard2010-01-30 16:04:24 +0000
committerSimon Howard2010-01-30 16:04:24 +0000
commita054475997a14499a9bce528a64efb22ce2fe2b0 (patch)
treea830f045e730f9e14211b528b466823fc5c9812f /pkg
parent41e8417f3659546ef86fcefcc43a8de5d25bcbd4 (diff)
downloadchocolate-doom-a054475997a14499a9bce528a64efb22ce2fe2b0.tar.gz
chocolate-doom-a054475997a14499a9bce528a64efb22ce2fe2b0.tar.bz2
chocolate-doom-a054475997a14499a9bce528a64efb22ce2fe2b0.zip
Set launch button as default button, so that it is possible to launch
the game by pressing return. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1834
Diffstat (limited to 'pkg')
-rw-r--r--pkg/osx/LauncherManager.h1
-rw-r--r--pkg/osx/LauncherManager.m1
-rw-r--r--pkg/osx/Resources/launcher.nib/classes.nib1
-rw-r--r--pkg/osx/Resources/launcher.nib/info.nib2
-rw-r--r--pkg/osx/Resources/launcher.nib/keyedobjects.nibbin19494 -> 19616 bytes
5 files changed, 4 insertions, 1 deletions
diff --git a/pkg/osx/LauncherManager.h b/pkg/osx/LauncherManager.h
index 76c74624..e454ab4f 100644
--- a/pkg/osx/LauncherManager.h
+++ b/pkg/osx/LauncherManager.h
@@ -32,6 +32,7 @@
IWADController *iwadController;
id launcherWindow;
+ id launchButton;
id commandLineArguments;
id packageLabel;
diff --git a/pkg/osx/LauncherManager.m b/pkg/osx/LauncherManager.m
index ee7ed3dc..ae91ef4d 100644
--- a/pkg/osx/LauncherManager.m
+++ b/pkg/osx/LauncherManager.m
@@ -330,6 +330,7 @@ static NSString *AppendQuotedFilename(NSString *str, NSString *fileName)
[self->packageLabel setStringValue: @PACKAGE_STRING];
[self->launcherWindow setTitle: @PACKAGE_NAME " Launcher"];
[self->launcherWindow center];
+ [self->launcherWindow setDefaultButtonCell: [self->launchButton cell]];
[self setConfig];
}
diff --git a/pkg/osx/Resources/launcher.nib/classes.nib b/pkg/osx/Resources/launcher.nib/classes.nib
index 236f6b67..7efc837a 100644
--- a/pkg/osx/Resources/launcher.nib/classes.nib
+++ b/pkg/osx/Resources/launcher.nib/classes.nib
@@ -36,6 +36,7 @@
OUTLETS = {
commandLineArguments = id;
iwadController = id;
+ launchButton = id;
launcherWindow = id;
packageLabel = id;
};
diff --git a/pkg/osx/Resources/launcher.nib/info.nib b/pkg/osx/Resources/launcher.nib/info.nib
index 32b331f5..512ee6dd 100644
--- a/pkg/osx/Resources/launcher.nib/info.nib
+++ b/pkg/osx/Resources/launcher.nib/info.nib
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>484 105 612 260 0 0 1440 878 </string>
+ <string>325 73 612 260 0 0 1440 878 </string>
<key>IBEditorPositions</key>
<dict>
<key>29</key>
diff --git a/pkg/osx/Resources/launcher.nib/keyedobjects.nib b/pkg/osx/Resources/launcher.nib/keyedobjects.nib
index 4f078d7c..cc763056 100644
--- a/pkg/osx/Resources/launcher.nib/keyedobjects.nib
+++ b/pkg/osx/Resources/launcher.nib/keyedobjects.nib
Binary files differ