More tidyup.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3718 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-02-16 11:05:22 +00:00
parent e55dfd2d9c
commit 0afb3402c2
4 changed files with 17 additions and 1 deletions

View file

@ -2,6 +2,10 @@ Tue Feb 16 10:19:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Tools/gpbs.m: Improve handling of loss of connections - don't remove
data from a pasteboard unless it was owned by the connection lost.
* Source/NSPanel.m: Override NSWindows initDefaults to make sure
panels aren't shown in windows menu by default.
* Source/NSApplication.m: Make NSApp a global variable.
* Headers/AppKit/NSApplication.h: Make NSApp a global variable.
Tue Feb 16 5:30:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -340,4 +340,9 @@ int NSApplicationMain(int argc, const char **argv);
NSString *NSOpenStepRootDirectory(void);
//
// The NSApp global variable.
//
extern NSApplication *NSApp;
#endif // _GNUstep_H_NSApplication

View file

@ -38,6 +38,7 @@
#include <Foundation/NSDictionary.h>
#include <Foundation/NSException.h>
#include <Foundation/NSNotification.h>
#include <Foundation/NSObject.h>
#include <Foundation/NSRunLoop.h>
#include <Foundation/NSAutoreleasePool.h>
#include <Foundation/NSTimer.h>
@ -93,9 +94,9 @@ struct _NSModalSession {
//
static BOOL gnustep_gui_app_is_in_dealloc;
static NSEvent *null_event;
static id NSApp;
static NSString *NSAbortModalException = @"NSAbortModalException";
NSApplication *NSApp = nil;
@implementation NSApplication

View file

@ -98,6 +98,12 @@
return self;
}
- (void) initDefaults
{
[super initDefaults];
menu_exclude = YES; // Don't show panels in windows menu.
}
- (BOOL) canBecomeKeyWindow
{
return NO;