2011-01-09 21:58-EST Gregory John Casamento <greg.casamento@gmail.com>

* Source/NSSavePanel.m: (-_initWithoutGModel): added
	code near the and to close the current menu when in Win95
	mode.  If this doesn't happen the menu remains open
	and allows the user to drag the window around while the 
	menu remains in it's old position.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31864 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2011-01-10 02:48:30 +00:00
parent bf270ebcfb
commit 3afec9e148
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2011-01-09 21:58-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSSavePanel.m: (-_initWithoutGModel): added
code near the and to close the current menu when in Win95
mode. If this doesn't happen the menu remains open
and allows the user to drag the window around while the
menu remains in it's old position.
2011-01-09 German Arias <german@xelalug.org>
* Source/NSApplication.m (-activateIgnoringOtherApps:):

View file

@ -50,6 +50,7 @@
#import "AppKit/NSImage.h"
#import "AppKit/NSImageView.h"
#import "AppKit/NSMatrix.h"
#import "AppKit/NSMenu.h"
#import "AppKit/NSPasteboard.h"
#import "AppKit/NSDragging.h"
#import "AppKit/NSSavePanel.h"
@ -182,6 +183,7 @@ setPath(NSBrowser *browser, NSString *path)
NSImage *image;
NSRect r;
id lastKeyView;
NSInterfaceStyle style = NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil);
// Track window resizing so we can change number of browser columns.
[[NSNotificationCenter defaultCenter] addObserver: self
@ -373,6 +375,12 @@ setPath(NSBrowser *browser, NSString *path)
[self registerForDraggedTypes: [NSArray arrayWithObjects:
NSFilenamesPboardType, nil]];
if (style == NSWindows95InterfaceStyle)
{
[[[[NSApp mainWindow] menu] attachedMenu] close];
}
return self;
}