Changes so that the proper window can get the menu on Windows.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@29280 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2010-01-14 11:44:40 +00:00
parent 8f65229b42
commit 1d8d80af92
3 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2010-01-14 06:46-EST Gregory John Casamento <greg.casamento@gmail.com>
* GormCore/GormDocumentWindow.m: Make window unable to become main.
This is so that the document window will not receive the menu
on Windows.
* GormCore/GormPalettesManager.m: Make the panel able to become main
so that it can recieve the menu on Windows.
2010-01-06 01:06-EST Gregory John Casamento <greg.casamento@gmail.com>
* GormCore/GNUmakefile: Add files here.

View file

@ -29,12 +29,16 @@
#include <AppKit/NSPasteboard.h>
@implementation GormDocumentWindow
- (BOOL) canBecomeMainWindow
{
return NO;
}
- (void) setDocument:(id)document
{
_document = document;
}
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender;
{
NSPasteboard *pb = [sender draggingPasteboard];

View file

@ -44,7 +44,7 @@
}
- (BOOL) canBecomeMainWindow
{
return NO;
return YES;
}
@end