mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
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:
parent
8f65229b42
commit
1d8d80af92
3 changed files with 14 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
}
|
||||
- (BOOL) canBecomeMainWindow
|
||||
{
|
||||
return NO;
|
||||
return YES;
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue