diff --git a/ChangeLog b/ChangeLog index 1ba54ecef..1682a6251 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-01-09 21:58-EST Gregory John Casamento + + * 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 * Source/NSApplication.m (-activateIgnoringOtherApps:): diff --git a/Source/NSSavePanel.m b/Source/NSSavePanel.m index 77a844092..331edd5fe 100644 --- a/Source/NSSavePanel.m +++ b/Source/NSSavePanel.m @@ -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; }