mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 18:41:07 +00:00
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:
parent
4122ebfd3f
commit
065dfabb42
2 changed files with 16 additions and 0 deletions
|
@ -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:):
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue