Corrected the bug where the menus are appearing in the windows menu.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19224 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-05-01 13:02:04 +00:00
parent 09275fe0d8
commit 8f7aedada1
2 changed files with 7 additions and 65 deletions

View file

@ -1,3 +1,9 @@
2004-05-01 09:03 Gregory John Casamento <greg_casamento@yahoo.com>
* GormNSMenu.m: [GormNSMenu _createWindow] added call to
setExcludedFromWindowsMenu: to make certain that the menu windows
are not displayed in the Windows menu under Gorm's main menu.
2004-05-01 07:10 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassManager.m: Removed some NSLog messages.

View file

@ -49,11 +49,6 @@
@end
@implementation GormNSMenuWindow
- (BOOL)isExcludedFromWindowsMenu
{
return YES;
}
- (BOOL)canBecomeMainWindow
{
return YES;
@ -114,24 +109,6 @@
}
@end
/*
@interface NSMenu (GormAdditions)
- (NSWindow *)_bWindow;
- (void) _setBwindow: (NSWindow *)win;
@end
@implementation NSMenu (GormAdditions)
- (NSWindow *)_bWindow
{
return _bWindow;
}
- (void) _setBwindow: (NSWindow *)win
{
_bWindow = win;
}
@end
*/
@implementation GormNSMenu
- (BOOL) performKeyEquivalent: (NSEvent*)theEvent
{
@ -148,58 +125,17 @@
[win setMenu: self];
[win setLevel: NSSubmenuWindowLevel];
// [win setWorksWhenModal: NO];
// [win setBecomesKeyOnlyIfNeeded: YES];
[win setExcludedFromWindowsMenu: YES];
return win;
}
/*
- (void) awakeFromDocument: (id)document
{
NSWindow *win = [self _bWindow];
[win close];
RELEASE(win);
[self _setBwindow: nil];
}
*/
- (NSString *)className
{
return @"NSMenu";
}
/*
- (void) display
{
NSLog(@"Display...");
[super display];
}
*/
@end
/*
@interface GormNSMenu (GNUstepExtra)
- (void) setTornOff: (BOOL)flag;
- (void) _showTornOffMenuIfAny: (NSNotification*)notification;
- (void) _showOnActivateApp: (NSNotification*)notification;
@end
@implementation GormNSMenu (GNUstepExtra)
- (void) setTornOff: (BOOL)flag
{
}
- (void) _showTornOffMenuIfAny: (NSNotification*)notification
{
}
- (void) _showOnActivateApp: (NSNotification*)notification
{
}
@end
*/
@implementation NSMenu (GormNSMenu)
+ (id) allocSubstitute
{