mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:47:39 +00:00
Applied changes in menuInWindow.patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31895 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
74eeac62d6
commit
f999016f34
6 changed files with 50 additions and 32 deletions
|
@ -50,7 +50,6 @@
|
|||
#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"
|
||||
|
@ -183,7 +182,6 @@ 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
|
||||
|
@ -375,12 +373,6 @@ setPath(NSBrowser *browser, NSString *path)
|
|||
[self registerForDraggedTypes: [NSArray arrayWithObjects:
|
||||
NSFilenamesPboardType, nil]];
|
||||
|
||||
|
||||
if (style == NSWindows95InterfaceStyle)
|
||||
{
|
||||
[[[[NSApp mainWindow] menu] attachedMenu] close];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue