shithub: choc

Download patch

ref: a054475997a14499a9bce528a64efb22ce2fe2b0
parent: 41e8417f3659546ef86fcefcc43a8de5d25bcbd4
author: Simon Howard <[email protected]>
date: Sat Jan 30 11:04:24 EST 2010

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

--- a/pkg/osx/LauncherManager.h
+++ b/pkg/osx/LauncherManager.h
@@ -32,6 +32,7 @@
     IWADController *iwadController;
 
     id launcherWindow;
+    id launchButton;
 
     id commandLineArguments;
     id packageLabel;
--- a/pkg/osx/LauncherManager.m
+++ b/pkg/osx/LauncherManager.m
@@ -330,6 +330,7 @@
     [self->packageLabel setStringValue: @PACKAGE_STRING];
     [self->launcherWindow setTitle: @PACKAGE_NAME " Launcher"];
     [self->launcherWindow center];
+    [self->launcherWindow setDefaultButtonCell: [self->launchButton cell]];
     [self setConfig];
 }
 
--- 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; 
             }; 
--- 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>
binary files a/pkg/osx/Resources/launcher.nib/keyedobjects.nib b/pkg/osx/Resources/launcher.nib/keyedobjects.nib differ