From cd8cf5f1c8c0e6a86ddc3322f33acc29698009f5 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 15 Jan 2010 18:51:35 +0000 Subject: Center the launcher window and config window on startup. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1815 --- pkg/osx/IWADController.m | 2 ++ pkg/osx/LauncherManager.m | 1 + 2 files changed, 3 insertions(+) diff --git a/pkg/osx/IWADController.m b/pkg/osx/IWADController.m index f1860301..783ee38f 100644 --- a/pkg/osx/IWADController.m +++ b/pkg/osx/IWADController.m @@ -250,6 +250,8 @@ static NSString *IWADFilenames[NUM_IWAD_TYPES + 1] = - (void) awakeFromNib { + [self->configWindow center]; + // Set configuration for all IWADs from configuration file. [self setIWADConfig]; diff --git a/pkg/osx/LauncherManager.m b/pkg/osx/LauncherManager.m index 0cde9f6e..26684811 100644 --- a/pkg/osx/LauncherManager.m +++ b/pkg/osx/LauncherManager.m @@ -304,6 +304,7 @@ static NSString *AppendQuotedFilename(NSString *str, NSString *fileName) { [self->packageLabel setStringValue: @PACKAGE_STRING]; [self->launcherWindow setTitle: @PACKAGE_NAME " Launcher"]; + [self->launcherWindow center]; [self setConfig]; } -- cgit v1.2.3