mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
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:
parent
e55dfd2d9c
commit
0afb3402c2
4 changed files with 17 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -98,6 +98,12 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) initDefaults
|
||||
{
|
||||
[super initDefaults];
|
||||
menu_exclude = YES; // Don't show panels in windows menu.
|
||||
}
|
||||
|
||||
- (BOOL) canBecomeKeyWindow
|
||||
{
|
||||
return NO;
|
||||
|
|
Loading…
Reference in a new issue